To Do Blast Alignment Of Two Proteins By Biopython
1
0
Entering edit mode
12.9 years ago
Benjamin ▴ 20

I am new to biopython and I am not sure if it is a stupid question.

I would like to perform the same task as the one can be done on the web based blast. I am trying to align two protein by providing their GIs and receive the e-value. But I can only find examples to blast one protein in the biopython tutorial.

How can I align two protein using the qblast function?

I have tried the command

result_handle = NCBIWWW.qblast("blastp", "pat", "330186","118881")

But it returns me a lot of alignments and a lot of e-values.

I also found that it takes a few minutes for my computer to complete the query, where if I use the web based blast only takes a few seconds.

Is my query anything wrong?

blast biopython python • 5.3k views
ADD COMMENT
1
Entering edit mode
ADD REPLY
2
Entering edit mode
12.9 years ago

I assume you are using [?]COBALT[?]?

Unfortunately, I don't think NCBI provides a programmatically accessed interface for COBALT. The qblast function you are using queries the NCBI QBlast server which is just a new feature they have implemented for Blast allowing different output formats without having to re-run the blast.

Alternatively:

  1. You can query NCBI Entrez data bases using BioPython to get your protein sequences by accession: http://biopython.org/DIST/docs/tutorial/Tutorial.html#htoc95
  2. Download ClustalW: http://www.ebi.ac.uk/Tools/phylogeny/clustalw2_phylogeny/help/faq.html#21
  3. Align your protein sequences with BioPython's interface to ClustalW: http://biopython.org/DIST/docs/tutorial/Tutorial.html#htoc74
  4. Parse the clustalW results using BioPython's alignIO: http://biopython.org/DIST/docs/tutorial/Tutorial.html#htoc66
ADD COMMENT
1
Entering edit mode

QBLAST is a very old web API, that pre-dates BLAST+

ADD REPLY

Login before adding your answer.

Traffic: 1400 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