Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disconnect not removing all references? #33

Open
schorlton-bugseq opened this issue Oct 3, 2024 · 0 comments
Open

Disconnect not removing all references? #33

schorlton-bugseq opened this issue Oct 3, 2024 · 0 comments

Comments

@schorlton-bugseq
Copy link

Thanks for the great library! Running gfapy 1.2.3 on the following file:
test.gfa.gz

g = gfapy.Gfa.from_file("test.gfa", vlevel=3)
gfa_line = g.line("k141_11431")
gfa_line.disconnect()

Based on the docs, I expected all lines referencing k141_11431 to be removed. Indeed most lines are. However, there is still one line below...am I understanding the library correctly? Thanks!

for line in g.lines: print(line)
H       VN:Z:1.0
S       k141_12728      AGCAGGAGGAGCACTGTTTCACAGTCTTCCTCTCGCCATGATCTATGAGCCTTCTCAACGAATTTGGCGGTCCCGCTATAGGGTGGGTTGATGTAAACAGTCTTCCCGGTCCAGCGCTGCTTCAGACCATCGTCGTCCTGGTAATAGATGCGATCGGCCTGAACCGGACTGTCTGGAAGACCACACGGGTCTATAGAAATCGGGCCTATGACCGAGATGAACCCTTCCAGGAGTTCGGTTCAGGCCGATGAAACGATATGCGCCCGTTTAGGAAGAACACGTCCCCCTGTCCGACGACCTCATTGTGAAACCACCTGTGATG
S       k141_17097      AGCAGGAGGAGCACTGTTTCACAGTCTTCCTCTCGCCATGATCTATGAGCCTTCTCAACGAATTTGGCGGTCCCGCTATAGGGTGGGTTGATGTAAACAGTCTTCCCGGTCCAGCGCTGCTTCAGACCATCGTCGTCCTGGAAAGGATCATCTCGGTCGTAGGCCCAATTTCTATAGACCCGTGTGGTCATCCAGACAGTCCGGTTCAGGCCGATCGCATCTACTACCAGGACGACGATGGTCTGGAGCAGGAGGAGCACTGTTTCACAGTCTTCCTCTCGCCATGATCTATGAGCCTTCTCAACGAATTTGGC
S       k141_6966       GACGATGGTCTGAAGCAGCGCTGGAGCGGGAAGAGTGTTTTCGTCAATCCGCCCTATAGCGGGACGGCCAAATTCGTTGAGAAGGCTCATAGATCATGGCGAGAGGAAGACTGTGAAACAGTGCTCCTCCTGCTCCAGACCATCGTCGTCCTGGTAGTAGATGCGATCGGCCTGAACCGGACTGTCTGGATGACCACACGGGTCTAT
L       k141_11431      +       k141_12728      +       141M
L       k141_6966       +       k141_17097      -       141M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant