From 358cba6fa6f6b9f034b5c173cffdb0666358be51 Mon Sep 17 00:00:00 2001 From: clintval Date: Tue, 24 Dec 2024 14:33:19 -0500 Subject: [PATCH] ... --- fgpyo/sam/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fgpyo/sam/__init__.py b/fgpyo/sam/__init__.py index 29509f4..bc5d9fd 100644 --- a/fgpyo/sam/__init__.py +++ b/fgpyo/sam/__init__.py @@ -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: