Invalid Api For Biopython'S Blast?
1
0
Entering edit mode
12.5 years ago
Jesse J ▴ 150

According to BioPython's API, Bio.Blast.NCBIWWW.qblast() should have a parameter of specifying megablast to be true or false. When I set my qblast as

result_handle = NCBIWWW.qblast("blastn", "nr", fasta_string, megablast=True)

then I get the error of

TypeError: qblast() got an unexpected keyword argument 'megablast'

What gives? Am I doing something wrong, or does BioPython not actually have that option?

biopython • 2.4k views
ADD COMMENT
2
Entering edit mode

Are you using the latest version of Biopython?

ADD REPLY
4
Entering edit mode
12.5 years ago
Peter 6.0k

The megablast argument was added to the qblast function in October 2010, so you need at least Biopython 1.56 which was released in November 2010. Please upgrade, the current release is Biopython 1.58 released August 2011.

ADD COMMENT
0
Entering edit mode

Huh...turns out I do have an older version. Which is weird considering I installed Biopython only a few weeks ago.

ADD REPLY
0
Entering edit mode

If you got it on Linux via the distribution's package manager, they often don't have the latest release.

ADD REPLY

Login before adding your answer.

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