From cf2395fc2bdd406f3ca3b3dc2b34cd83f09cb0ce Mon Sep 17 00:00:00 2001 From: Caleb Choo Date: Wed, 16 Aug 2023 10:40:14 -0700 Subject: [PATCH] #355 fix chromosome comparison check --- src/mavis/validate/align.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mavis/validate/align.py b/src/mavis/validate/align.py index b4aafe6a..fe298c3f 100644 --- a/src/mavis/validate/align.py +++ b/src/mavis/validate/align.py @@ -563,7 +563,7 @@ def supports_primary_event(alignment): std_reads = set() alignments = [] for raw_read in reads_by_query.get(contig.seq, []): - if raw_read.reference_name not in {evidence.break1.chr, evidence.break2.chr}: + if raw_read.reference_name != evidence.break1.chr and raw_read.reference_name != evidence.break2.chr: continue read = evidence.standardize_read(raw_read) read.cigar = _cigar.merge_internal_events(