Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Dec 24, 2024
1 parent 3239505 commit 358cba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fgpyo/sam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ def isize(r1: AlignedSegment, r2: Optional[AlignedSegment] = None) -> int:
if r2 is None:
if not r1.has_tag("MC"):
raise ValueError("Cannot infer insert size from a single read without a mate cigar!")
r2_cigar: Cigar = Cigar.from_cigarstring(r1.get_tag("MC"))
r2_cigar: Cigar = Cigar.from_cigarstring(cast(str, r1.get_tag("MC")))
r2_is_forward: bool = r1.mate_is_forward
r2_reference_start: int = r1.next_reference_start
else:
Expand Down

0 comments on commit 358cba6

Please sign in to comment.