This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to specify organism taxa in biopythons remote blast cmd?

I' doing tblastn with biopython via

from Bio.Blast import NCBIWWW
fasta_string = open("my_query.faa").read()
result_handle = NCBIWWW.qblast("tblastn", "refseq_genomes", fasta_string )

and i want to limit my search only to one taxa - arthropods (taxid:6656)

In web blast it is easily done, but i can't seem to find the right option here.

biopyhon blastx

1 answer

Hi there,

I think entrez_query option should do the job e.g. entrez_query='txid6656[ORGN]' http://biopython.org/DIST/docs/api/Bio.Blast.NCBIWWW-module.html

entrez_query Entrez query to limit Blast search

Log in to answer this question.