This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to BLAST 400 genes against genome at once?

I have a list of 400 genes. I just need a way to BLAST all of them against a genome without doing it one at a time. I know on NCBI's site you can have input a list of genes if you're blasting them against each other, but I'm BLASTing against the genome.

Thanks for your help.

blast

You can do it using BLAST2. Give your all gene sequences as query and enter genome sequence/s as subject

Have you checked the command line option for BLAST?

Are you going to try to do this locally or at NCBI? If latter then @EagleEye has linked the relevant NCBI help page below.

If you are going to do this locally then keep in mind that depending on size of your dataset/reference you are using the search will not be trivial (in terms of hardware spec for computer).

Basic idea is to split your genes into a set of files (1 per or more) and then use a for loop like the one described in this post: blast running for several splitted query to go through the set of files.

I'm new to command line and I would prefer to do this through NCBI if possible. I'm just starting to learn BioPython. Can this be done through NCBI?

I tried going through the link below from EagleEye. This blasted all 400 genes together instead of separately. I need to get the top 2 BLAST results for each of the 400 genes.

1 answer

http://www.ncbi.nlm.nih.gov/guide/howto/submit-mult-seq-blast/

Log in to answer this question.