Question: How do I blast against a specific portion of the nr database?
gravatar for phoenixmx
6.2 years ago by
United Kingdom
phoenixmx20 wrote:

I would like to blast my sequences against the swissprot database, using local blast. For the purpose of downstream applications, I would like to do this using the copy of the swissprot database from the NCBI's ftp site, not the version from swissprot's own website.

The NCBI version comes as tiny .msk and .pal files, accompanied with this message:

"Certain databases are subsets of a larger parental database. For those databases, alias and mask files, rather than actual databases, are provided. The mask file needs the parent database to function properly. The parent 

databases should be generated on the same day as the mask file. For example, to use swissprot pre-formatted database, swissprot.tar.gz, one will need to get the nr.tar.gz with the same date stamp."

I have both the nr database and swissprot files, with matching date stamps, downloaded and extracted. How do I now blast against the swissprot database? If I try to blast against swissprot as if it were a normal database, it tells me it cannot find ''. I have also gone through the help files from my blast executable (blastall 2.2.18) and see no parameters for mask or alias files.

blast uniprot nr swissprot ncbi • 2.4k views
ADD COMMENTlink modified 6.2 years ago by Carlos Borroto1.9k • written 6.2 years ago by phoenixmx20

cross posted:

ADD REPLYlink written 6.2 years ago by Pierre Lindenbaum129k
gravatar for Carlos Borroto
6.2 years ago by
Carlos Borroto1.9k
Washington Metropolitan Area
Carlos Borroto1.9k wrote:

It sounds like you need a newer version of BLAST. I just confirmed I can use the .msk and .pal files for swissprot with 'Protein-Protein BLAST 2.2.28+'.

ADD COMMENTlink modified 6 months ago by RamRS27k • written 6.2 years ago by Carlos Borroto1.9k

That might indeed be the case, thank you. The blast installation I have access to on the server I'm using is rather old.

Would you mind please explaining exactly what the correct way to use those files would be? Do I just list set the -database parameter to swissprot, or set the database to nr and include extra parameters pointing to the mask or alis files?

Not having done this before, I don't know what the correct approach is.

EDIT: I've got the most recent BLAST+ executable on the server now, and it works just fine if you set -db as swissprot and let it figure things out itself.

ADD REPLYlink modified 6 months ago by RamRS27k • written 6.2 years ago by phoenixmx20
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 962 users visited in the last hour