diff --git a/gatb-core/src/gatb/debruijn/impl/Simplifications.cpp b/gatb-core/src/gatb/debruijn/impl/Simplifications.cpp index 3bcd3d612..0967d7ab5 100644 --- a/gatb-core/src/gatb/debruijn/impl/Simplifications.cpp +++ b/gatb-core/src/gatb/debruijn/impl/Simplifications.cpp @@ -1108,7 +1108,8 @@ void Simplifications::heuristic_most_covered_path_unitigs( current_node = neighbors[0].to; if (_graph.degree(current_node, reverse(dir)) <= 1) { - std::cout << "Weird, there was supposed to be an in-neighbor. Maybe there's a loop. Remove this print if it never happens" << "in degree " << _graph.degree(current_node, reverse(dir)) << " node" << _graph.toString(current_node) << std::endl; + // actually this happens for kmers that are linked to themselves (e.g. k=5, AAATT, is connected to its own revcomp AATTT, so it's fine to end the simple path here on those cases) + //std::cout << "Weird, there was supposed to be an in-neighbor. Maybe there's a loop. Remove this print if it never happens" << "in degree " << _graph.degree(current_node, reverse(dir)) << " node" << _graph.toString(current_node) << std::endl; return; }