Commit ca999082 authored by MARIJON Pierre's avatar MARIJON Pierre

_add_internal become just a proxy to add link

parent 8974149e
......@@ -145,12 +145,14 @@ class Parser:
for line in str(self.__graph).split("\n"):
yield line
segment = set()
yield str(self.__graph.header)
for line in self.__graph.segments:
yield str(line)
for line in self.__graph.dovetails:
if line.to_segment in self.__graph.segments \
and line.from_segment in self.__graph.segments:
if in segment \
and line.from_segment in segment:
yield str(line)
......@@ -198,12 +200,8 @@ class Parser:
def _add_internal(self, name_a, strand_a, name_b, strand_b, ov_len,
nb_match, overhang_maplen):
signature = (name_a, strand_a, name_b, strand_b)
value = (name_a, strand_a, name_b, strand_b, ov_len+"M",
"NM:i:"+str(int(ov_len) - int(nb_match)),
self._add_link(self, name_a, strand_a, name_b, strand_b, ov_len,
nb_match, overhang_maplen)
def _add_containment(self, container, strand_ner, contained, strand_ned, pos, length):
self.__graph.add_line("C\t"+"\t".join([container, strand_ner, contained,
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