Skip to content

Commit 417ef9a

Browse files
committed
Contig stitcher: fix the issue with overreaching bad_contigs
1 parent 4108bdf commit 417ef9a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

micall/core/plot_contigs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ def is_ancestor(contig_name, other_names):
772772
final_nodes.remove(contig_name)
773773

774774
for contig_name in final_nodes:
775-
if any(contig_name in transitive_parent_graph.get(bad, []) for bad in bad_contigs):
775+
if any(contig_name in eqv_morphism_graph.get(bad, []) for bad in bad_contigs):
776776
continue
777777

778778
if any(contig_name in eqv_morphism_graph.get(temp_name, [temp_name]) for temp_name in overlaps_list):

micall/tests/data/stitcher_plots/test_cross_alignment_around_small_insertion.svg

+7-7
Loading

0 commit comments

Comments
 (0)