Commit 3aa94238 authored by MARIJON Pierre's avatar MARIJON Pierre

remove debug instruction

parent 2560d6e7
......@@ -179,16 +179,16 @@ class Parser:
def _add_link(self, name_a, name_b, strand, ov_len, nb_match, overhang_maplen):
if strand == "+":
if name_a + "_" in self.__links.nodes() or name_b + "_" in self.__links.nodes():
logging.debug("add", name_a+"_", name_b+"_")
self.__links.add_edge(name_a + "_", name_b + "_",
**{"ov_len": ov_len, "nb_match": nb_match,
"overhang_len": overhang_maplen})
else:
if name_a in self.__links.nodes() or name_b in self.__links.nodes():
logging.debug("add", name_a, name_b)
self.__links.add_edge(name_a, name_b,
**{"ov_len": ov_len, "nb_match": nb_match,
"overhang_len": overhang_maplen})
else:
logging.debug("add", name_a+"_", name_b+"_")
self.__links.add_edge(name_a + "_", name_b + "_",
**{"ov_len": ov_len, "nb_match": nb_match,
"overhang_len": overhang_maplen})
else:
if name_a in self.__links.nodes() or name_b + "_" in self.__links.nodes():
logging.debug("add ", name_a, name_b + "_")
......
......@@ -34,7 +34,7 @@ def test_with_2_repetition_strand_diff():
2 10000 1 8000 - 3 10000 0 8000 8000 8000 255
3 10000 2000 10000 + 4 10000 0 8000 8000 8000 255
4 10000 2000 10000 + 9 10000 0 8000 8000 8000 255
4 10000 2000 10000 - 7 10000 0 8000 8000 8000 255
4 10000 2001 10000 - 7 10000 2000 10000 8000 8000 255
8 10000 2000 10000 + 7 10000 0 8000 8000 8000 255
7 10000 2000 10000 + 6 10000 0 8000 8000 8000 255
6 10000 2001 10000 - 5 10000 2000 10000 8000 8000 255
......@@ -50,20 +50,18 @@ S 9 * LN:i:10000
S 7 * LN:i:10000
S 8 * LN:i:10000
S 6 * LN:i:10000
L 2 + 3 - 8000M NM:i:0 om:f:0.00
L 1 - 2 + 8001M NM:i:0 om:f:0.00
L 4 - 7 + 8000M NM:i:0 om:f:0.25
L 4 - 9 - 8000M NM:i:0 om:f:0.00
L 1 + 2 - 8000M NM:i:0 om:f:0.00
L 2 - 3 + 8001M NM:i:0 om:f:0.00
L 3 + 4 + 8000M NM:i:0 om:f:0.00
L 4 + 9 + 8000M NM:i:0 om:f:0.00
L 4 + 7 - 8000M NM:i:0 om:f:0.00
L 8 + 7 + 8000M NM:i:0 om:f:0.00
L 7 + 6 + 8000M NM:i:0 om:f:0.00
L 3 - 4 - 8000M NM:i:0 om:f:0.00
L 5 + 1 - 8000M NM:i:0 om:f:0.00
L 6 + 5 - 8000M NM:i:0 om:f:0.00
L 8 + 7 + 8000M NM:i:0 om:f:0.00
L 5 - 1 + 8000M NM:i:0 om:f:0.00
"""
p = paf2gfa.Parser()
p.parse_lines(line.split("\n"))
open("tmp.gfa", "w").write(p.get_gfa())
assert set(resu.split("\n")) == set(p.get_gfa().split("\n"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment