Open tseemann opened 4 years ago
I am not sure how to do that, but I'll do my best. Thank you!
Freebayes used to come with this tool:
bamleftalign -d -c -f ref.fasta < sorted.bam > sorted.aligned.bam
GATK also has a tool: https://gatk.broadinstitute.org/hc/en-us/articles/360036508992-LeftAlignIndels
But ideally MapCaller would do this. if you don't you will miss some indels.
Thank you for the information. I did observe the inconsistent alignments in homopolymer regions, but I did not know how to solve this issue. Your information is very helpful. I'll look into it.
The problem is that this does not really solve it. It is impossible to know which A was actually deleted (or where an A was inserted) It could be any of the 6 positions. The left align procedure just tries to make it consistent.
I found that ksw2 would generate more "left-aligned" alignments. You may run MapCaller with "-alg ksw2". Thank you!
it does appear that nw
does some bad alignments around indels and ksw2
does better
-alg nw
-alg ksw2
This alignment is problematic.
Are you able to ensure "left-aligned" alignments?