This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Command blast excluding species

Hello,

When using NCBI's interface I can exclude species, genus, even phyla. Is there a way to do that in command line blast?

I need to exclude one species from my search. I see this can somehow be done with a GI list, but the example they give is not very understandable.

Adrian

blast

1 answer

Use NCBI's taxonomy browser and link from there to genbank GI list of all nucleotides or proteins. Download that and use it in the command line blast, for example from here to here, then "send to" -> "file" -> "GI list"

Excellent strategy. Although I must say, I am wondering why they do not simply the same approach available in the online interface, where you can simply restrict your analysis to a taxid or exclude it from your analysis.

Log in to answer this question.