Hello, i am trying to do a blastx search locally but only for plants. How do i restrict it only searching plants? -taxids ? but how do find i all taxids for plants? or for whatever someone needs to do a search ? thanks
Hello, i am trying to do a blastx search locally but only for plants. How do i restrict it only searching plants? -taxids ? but how do find i all taxids for plants? or for whatever someone needs to do a search ? thanks
I got the following answer from NCBI for how to do this with new v5 blast indexes. You may need to upgrade to latest blast+
if v.2.8.1 is not compatible with v5 indexes.
BLAST+
package includes a script that allows you to extract taxid of interest (e.g. for bacteria below, use taxID you are interested in).
$ sh get_species_taxids.sh -t 2 > bacterial.ids
This dumps all the taxids under taxid 2 into the file bacterial.ids. You can then run blast to limit the search to those id's:
$ blastn -db nt_v5 -query test.txt -out out.put -taxidlist bacterial.ids
Viridiplantae (green plants, taxid 33090) is the top of the hierarchy. Narrow down further as needed.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
which version of blast are you using? (== can you already make use of the new dbv5 format of blast DBs?)
the version is 2.8.1+ (no idea)
You could download taxonomic information here: ftp://ftp.ncbi.nih.gov/pub/taxonomy/new_taxdump/new_taxdump.zip
To get the taxids you can filter the rankedlineage file.
EDIT: Changed the link