Get Snps, Indels From Biopython Blast Parser
1
1
Entering edit mode
11.9 years ago
Richard ▴ 590

Hi all,

Is there a way through the bioPython API to get the list of variants from BLAST alignments?

I have done my alignments using standalone BLAST by providing -query and -subject, and the output is stored in an xml file that bioPython can parse. I am wondering if there are any provided methods that can report the snps, ins, del from within any hsp records.

If there are no methods can anyone provide an example of how to get snps, indels, dels in query 1-based coordinates. Ie. I guess you could get snvs from the "match" field, but how will insertions or deletions be represented?

thanks, RIchard

biopython blast variant • 3.7k views
ADD COMMENT
1
Entering edit mode
11.9 years ago
Ryan Thompson ★ 3.6k

I suppose you would have to look in the aligned portions of the query and subject for runs of dashes in order to find indels. Then you would have to count the number of non-gaps preceding the indel in the query and add that to the start position of the hsp.

ADD COMMENT

Login before adding your answer.

Traffic: 1585 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6