Excluding an organism in biopython BLAST
I have just started using BLAST in biopython, and can do basic searches. I know how to limit my search to particular taxa with eg entrez_query = "txid9606[ORGN]" but I also want to be able to exclude some taxa. How can I do this?
biopython
blast
• 2,561 views
•
link
updated
by
GenoMax
•
written
by
o.delaney •
0 answers
No answers yet.
Log in to answer this question.
More posts like this
-
How can I run a Biopython qblast search targeting a specific set of organisms?
written by sviatoslav.kendallI want to use Biopython's qblast() command to query NCBI's databases but I want to limit my search to specific organisms. Looking at the [documentation …
-
Python SearchIO: Extracting information from QueryResults?
written by westin.kosater •I performed a BLAST search of a fasta file with multiple sequences using python. What I want to do now is to extract information and …
-
Want to loop through list of BLAST objects in python
written by westin.kosater •I performed a BLAST search with Biopython from a FASTA file with 92 entries (`goat.fasta`) from Bio.Blast import NCBIWWW from Bio.Blast import NCBIXML import pandas …
-
How to specify organism taxa in biopythons remote blast cmd?
written by tim.ivanov.92 •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 …
-
Method for limiting sequence input into blastsearches
written by paul.edward.malone •So i'm working on a segment of a pipeline using biopython, where i'll taking in fasta files with any number of sequences and running blast …
-
Searching wgs (whole genome shotgun) database with biopython
written by daniel.milligan •I used to be able to use BioPython to blast the wgs database at NCBI using the following handle: NCBIWWW.qblast(program="blastn", database= "wgs" sequence=fasta_string, entrez_query= organism …
-
How to go from locus tag to FASTA sequence using Biopython / specify db for blast query
written by kahackbarth27 •I am trying to take a list of S. cerevisiae gene locus tags [YDR251W, YDR342C, YPR022C, ...] and run a blastx search for homologs in …
-
blast - how to find homologs of a protein int the given list of taxonomies
written by maahpishanu •Hello, I have the following blast code which works properly: ``` > s [1] "O48946" system2('blastp',c('-db','refseq_protein','-remote' , '-entrez_query' , 'txid15368[ORGN]' , '-outfmt',sprintf('"6 %s"',paste(collapse=' ',blast.f6)) ) …
-
Help With BioPython BLAST Output
written by niamshah •Hi, I am new to BioPython and am writing a program to BLAST human amino acid sequences. My search query is: ``` NCBIWWW.qblast( program="blastp", database="nr", …
-
Running Blastn Locally: Exclude Uncultured Sequences
written by lgbi<p>When running BLAST throught the NCBI web interface, one can check the "exclude uncultured sequences" checkbox. When I run blast with BioPython on NCBI, I …
Not 100% sure on this by any means but I think with
entrezthe usual booleans are supported so you could try= "... NOT txid1234[ORGN]"but I don't think this is possible with commandline blast. You'd probably have to filter those sequences out when you build the database, or after you run the BLAST.Others may well know better though.
OK thanks that seems to have worked
That query needs to be
Entrez search limiting can only be done with remote blast searches at NCBI.
On other hand, if I recall right, taxID based inclusion/exclusion can only be done with local blast. I will confirm that later today.
OK thanks, I have seen [orgn], [ORGN] and [organism] in different places, do these all do the same thing? What is the different between entrez limiting and taxID inclusion/exclusion - I thought these were the same thing?
The search term categories should be equivalent.
TaxID exclusion can only be done with local blast searches. You can precisely include/exclude organisms/classes if you know the taxID. Here are the relevant options from blast help. Searching with taxID's is just one option for Entrez queries.