blast local database
1
1
Entering edit mode
6.6 years ago
dllopezr ▴ 130

Hi everyone

I need to locate a blast local database that was created on s server long time ago, but i don't know what is it extension or how it looks if I see it through more command.

How I can find this file?

blast • 2.2k views
ADD COMMENT
3
Entering edit mode
6.6 years ago
h.mon 35k

At its simplest form, blast databases have three files: for nucleotides, file.nhr, files.nin, file.nsq; for proteins, file.phr, files.pin, file.psq. Search for one of these extensions:

find . -name "*.phr"
ADD COMMENT
0
Entering edit mode

It may be better to extend that across the entire file system since OP does not know where the files are.

find / -name "*.phr"
ADD REPLY
1
Entering edit mode

In this case, it is better to redirect stderr to /dev/null, or the screen will be flooded with "permission denied" messages:

find / -name "*.nhr" 2>/dev/null

Another option is to use some find magic to avoid searching over files / dirs where one doesn't have permission:

find / -type d ! -perm -a+x -prune -type f ! -perm -a+r -prune -o -type f -name '*.phr' -print

Reference: How do I remove “permission denied” printout statements from the find program?

ADD REPLY
0
Entering edit mode

thanks for your help. If I want to make blast vs this local database, which of these files I must use?

ADD REPLY
0
Entering edit mode

You will use the basename of the file. e.g. if file is called nt.phr then you will use nt.

ADD REPLY

Login before adding your answer.

Traffic: 1528 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6