This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Extracting Indels from two aligned DNA sequences

How i can extract Indels out from two aligned DNA sequences using python or biopython?

alignment

1 answer

SeqFIRE does what you want https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3394284/

Otherwise you could use samtools view to view them.

samtools view -h in.bam  \
| awk '$1 ~ "^@" || $6 ~ "I|D"' \
| samtools view -b - > out.bam

SeqFIRE use protein alignments. But we want to use DNA alignment only. Is their a way to extract indels using BioPython?

Log in to answer this question.