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

parasail_aligner: NW - output all best alignments #86

Open
psheth-twist opened this issue Mar 11, 2021 · 2 comments
Open

parasail_aligner: NW - output all best alignments #86

psheth-twist opened this issue Mar 11, 2021 · 2 comments

Comments

@psheth-twist
Copy link

Using parasail_aligner with NW: nw_trace_scan_64
REF: GAACACGAGTGCCTTGAATAACAAGTTCGAACGATGGTTATTAATCCTAATAACGGAACGCTAAGTCCATTACCAAGGAGTGCGATGCAGTCTGGAGGATGAGTCTGACGGAGTGTAACTCGATCAGTCGTTATTCTCTCGCCAGCACTG
QRY: GACACGAGTGCCTTGAATAACAAGTTCGAACGATGGTTATTAATCCTAATAACGGAACGCTAAGTCCATTACCAAGGAGTGCGATGCAGTCTGGAGGATGAGTCTGACGGAGTGTAACTCGATCAGTCGTTATTCTCTCGCCAGCACTG

the qry has two possible best alignments with the same score (either ref position 0-base indexed position 1 or position 2 deleted)

How can we output either all alignments with the best score OR recognize that more than 1 alignment with this best score is possible?

Thanks!

@psheth-twist
Copy link
Author

biopython.pairwise2 is able to show both tracebacks possible with the best score

@jeffdaily
Copy link
Owner

🤔 Hmm. From the very beginning of parasail development, I didn't consider capturing more than just 1 alignment. I know other tools and libraries support this (I'm thinking of SSW, for example). Capturing more than one possible alignment would be a brand new feature for parasail; it's not trivial to implement. I think what it does currently is attempt to return the longest alignment if there would be ambiguity between two identical-score alignments.

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