This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Question about BLAST database

I need to run blast against mouse genome to cancel mouse related strings in a set of 16S Amplicon reads.

Could someone please tell me which of the files in the following link should I put as the database for blastn

basically blastn -db ** ........

* I understand should be one of the following files or its unzipped format :

ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCA_000001635.7_GRCm38.p5

blast ncbi

Thanks Farbod Quick question. Do you know if blastn can read through gz files or do I need to unzip them first?

Ali Jan,

As you must use -makeblastdb to convert your database (here mouse genome) to a blastable database, I guess you must decompress your .gz file first.

of course it seems that it could be done in just one script as :

gunzip -c mouse-genome.gz | makeblastdb -in nucl

Have a look here please.

~ Best

Thanks Farbod. Guess you came to my rescue :) The BLAST documentation seems to be extensive but quite misleading.

1 answer

You should use bbsplit from BBMap to separate the mouse reads away from your metagenomic data. It would be immensely more efficient. Directions for use are here: BBSplit syntax for generating builds for the reference genome and how to call different builds.

Log in to answer this question.