Skip to content

Commit

Permalink
doc: update err message
Browse files Browse the repository at this point in the history
  • Loading branch information
msto committed Oct 17, 2023
1 parent ded420e commit 7a4b1ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fgpyo/sam/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,15 @@ def add_pair(
elif chrom2 is None:
# require chrom2 if start2 is specified
if start2 != sam.NO_REF_POS:
raise ValueError("start2 cannot be used on its own - use with chrom or chrom2.")
raise ValueError("start2 cannot be used on its own - use with chrom2.")
# permit add_pair(chrom1, start1), making R2 unmapped
else:
chrom2 = sam.NO_REF_NAME
# New syntax - chrom2 is specified but chrom1 and chrom are not
elif chrom1 is None:
# require chrom1 if start1 is specified
if start1 != sam.NO_REF_POS:
raise ValueError("start1 cannot be used on its own - use with chrom or chrom1.")
raise ValueError("start1 cannot be used on its own - use with chrom1.")
# permit add_pair(chrom2, start2), making R1 unmapped
else:
chrom1 = sam.NO_REF_NAME
Expand Down

0 comments on commit 7a4b1ec

Please sign in to comment.