Skip to content

Commit

Permalink
Fix issue with reversed alignments in Contig Stitcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Dec 6, 2023
1 parent eaf82f1 commit 520870b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micall/core/contig_stitcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def stitch_consensus(contigs: Iterable[GenotypedContig]) -> Iterable[GenotypedCo
consensus_parts: Dict[GroupRef, List[AlignedContig]] = defaultdict(list)

for contig in contigs:
if isinstance(contig, AlignedContig):
if isinstance(contig, AlignedContig) and not contig.reverse:
consensus_parts[contig.group_ref].append(contig)
else:
yield contig
Expand Down

0 comments on commit 520870b

Please sign in to comment.