Commit 40008720 authored by MARIJON Pierre's avatar MARIJON Pierre

No self overlap

parent ee809fbd
......@@ -72,6 +72,9 @@ class Parser:
l = Parser.__line_type_correction(l)
if l.read_a == l.read_b:
return
overhang = Parser.__compute_overhang(l)
maplen = max(l.end_a - l.beg_a, l.end_b - l.beg_b)
......
import pytest
import paf2gfa
def test_A_overlap_A():
line = """
A 17472 15493 17472 - A 17472 15493 17472 314 1979 255 cm:i:38
"""
resu = """
H VN:Z:1.0
"""
p = paf2gfa.Parser()
p.parse_lines(line.split("\n"))
assert resu.strip() == p.get_gfa().strip()
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