Skip to content

Commit

Permalink
#355 fix chromosome comparison check
Browse files Browse the repository at this point in the history
  • Loading branch information
calchoo committed Aug 16, 2023
1 parent 6446465 commit cf2395f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mavis/validate/align.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cf2395f

Please sign in to comment.