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

Align indel variants in alignment view instead of centering #16

Open
zachary-foster opened this issue Nov 3, 2022 · 0 comments
Open

Comments

@zachary-foster
Copy link
Contributor

Current behavior when indels are encountered is to center the shorter variants in the gap:

Reference : tctttctatcttcttcctcctcggGTGTCCACCGTGGCCGGTGGACAgTccAcCGTGGCCGGcGttgAgtcctctattgtccctttccctttt  T  t T  accaataggatcgcagcgatgcagttcttttggccaatcagg
      NA1 : ............................................................................................. T294.T292..........................................
      EU1 : .........................----------------------....N.---------.N...N......................... T210.T210..........................................
      EU2 : ................................................G..T.----C----.C...T.........................<C11>.T11 ..........................................
      NA2 : ........................N..........................T.---------.S...W......................... T13 .<G8>..........................................
   oligos : tctttctatcttcttcctcctcggg----------t-----------gtc                                                      gtcctctattgtccctttcccttttCtt             

Would be better to use something like nltk.metrics.distance.edit_distance_align to do a short alignment to the reference or a multiple sequence alignment to make it look like:

Reference : tctttctatcttcttcctcctcggGTGTCCACCGTGGCCGGTGGACAgTccAcCGTGGCCGGcGttgAgtcctctattgtccctttccctttt  T  t T  accaataggatcgcagcgatgcagttcttttggccaatcagg
      NA1 : ............................................................................................. T294.T292..........................................
      EU1 : .........................----------------------....N.---------.N...N......................... T210.T210..........................................
      EU2 : ................................................G..T.C--------.C...T.........................<C11>.T11 ..........................................
      NA2 : ........................N..........................T.---------.S...W......................... T13 .<G8>..........................................
   oligos : tctttctatcttcttcctcctcgggt---------------------gtc                                                      gtcctctattgtccctttcccttttCtt             
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