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

conversion to stableGaf incorrectly assigns forward orientation #83

Open
tobiasrausch opened this issue Nov 15, 2022 · 1 comment
Open

Comments

@tobiasrausch
Copy link

Hi Heng,

Thanks for pointing out the stableGaf conversion script! When reverse orientation reads align to a single segment (stable sequence), such a GAF line is reduced to PAF (which assumes forward orientation). Here's a script and a single read that reproduces the error:

minigraph --vc -k 15 -w 10 -t 32 -cx lr GRCh38-90c.r518.gfa.gz read.fa > read.vc.gaf
minigraph -k 15 -w 10 -t 32 -cx lr GRCh38-90c.r518.gfa.gz read.fa > read.sq.gaf
mgutils.js stableGaf GRCh38-90c.r518.gfa.gz read.vc.gaf > read.converted.gaf
diff read.sq.gaf read.converted.gaf

>read
GGAACTCTCTGCATGTGCTTCTACGTTCAGTTACGTGTGCTCTGGCCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCTGGCCTGGCCTGGCCTGGCCTGGCC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GGCCGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCCAGGCCCTGGCCTGGCCTGGCCCTGGCCCTGGCTGGCCTGGCCTGGCCTGGCCACTGAGCTGGCCTGGCCTGGCCCCGGCGGCCTGGCCTGGCCTGGCCTGGCCTGGCTGGCCTGGCCTGGCCTGGCCTGGCCCTGGCCCTGGCCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCCTGGCACTGGCCGCTGACCGCCCAGCCCCTTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCCTGGCCTAGCCCACAGCCCCAGCCCCAGCCCCAGCCCCAGCCCCAGCCCCAGCCCTGGCCCTGGCCCTGGCCCTGGCCTGGCCTGGCCTGGCCTGGCCTGGCCCTGGCCTAGCCTGGCCCTGGCCTGGCCTGGCCTAGCCCAGCCTAGCCTAGCCTAGCCTAGCCTAACCCTAGCCCCAGCCCCAGCCCCAGCCCCAGCCCCAGCCCCAGCCCCAGCCCCAACCCCACTAGCCCCAACCCCAACCCCCAACCCCAACCCCAACCCCAACCCCAACCCCAACCCTAACCCTAACCCTTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCCTAACCCTAACCCTAACCCTAACCCTAACCTAACCCTAACCCTAACCCCAAACCCCAAACCCTAACCCTAAACCCTAACCCTAACCCTAACCCTAGCCCTAGCCCTAACCCTAACCCTAAACCCTAACCCTAAACCCTAAACCTAACCCTAAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCCTACCCCTAACCCTAACCCTAACCCTAACCCTAACCCTTACCCTAACCCTAACCCTTAACCCTTACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAAAACCCTAACCCTAACCCTAACCTAACCCTAACCCTAACCCTAACCCTTACCCCTACCCCAACCCCAACCCCAACCCCAACCCCAACCCCAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCC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CACGCCTACGGGCAGGGTGGGGAGTACAGGAGCAAGTCGCACGGCGCCGGGCTGGGGGCGGGGG

Thanks, Tobias

@Szhiha
Copy link

Szhiha commented Nov 13, 2023

Could you use the commands above to generate a .gaf file with contents(not empty)?

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

2 participants