External hard drive BLASTDB path not recognized
1
0
Entering edit mode
8.2 years ago
Jenez ▴ 540

Hi there!

Hopefully this does not stray too far away from the bioinformatical side of the site...

Question:

I'm saving my local blast databases on an external hard drive. When trying to run analysis against these databases, I'm constantly forced to give the absolute path as my database argument instead of simply the name of the database.

I know the issues lies in the exported BLASTDB environmental variable, however I can't for the life of me figure out how to structure the path!

Currently, it looks like this in my .bash_profile file:

export BLASTDB="/media/<username>/<Drive name>/<Subfolders>/external_blast_dbs"

This does not work however, as I keep getting an error that the database can not be found (states that it can't find the database relative to my current working directory...). Google searches never mention how to structure the path when it comes to external hard drives...

How the heck do you get it to recognize the database outside of my home directory?

Thank you in advance.

blast external drive .bash_profile • 2.6k views
ADD COMMENT
1
Entering edit mode

Did you make sure that there are no spaces in any of the names in that path? If there are then remove them (replace with an "_") and try. You could try and escape them but the former option is cleaner.

ADD REPLY
0
Entering edit mode

No spaces present!

ADD REPLY
1
Entering edit mode

I kind of feel like an idiot for asking, but have you sourced .bash_profile?

ADD REPLY
0
Entering edit mode

Then that makes me an even bigger idiot for not trying it yet. Alas, it did not fix it, but I think it not being sourced contributed to the issue... Now it's at least showing up in the path where it states it cannot find the database:

[/home/<username>/<subfolders>/:media/<username>/<Drive name>/<subfolders>/external_blast_dbs:]

Edit:

It works! I missed a / in the final try.

source .bash_profile and a correct path fixed the problem!

ADD REPLY
0
Entering edit mode

That's great! Glad it worked out!

ADD REPLY
0
Entering edit mode

Post your comment as an answer and i'll mark it as the correct one for future viewers!

ADD REPLY
0
Entering edit mode

Source your .bash_profile kids!

ADD REPLY
0
Entering edit mode

You are brave to be using an external drive to hold your blast database. Hopefully the database is small (or you are using a thunderbolt drive) :-)

ADD REPLY
2
Entering edit mode
8.2 years ago
cbio ▴ 450

Try sourcing your .bash_profile.

cd
source .bash_profile
ADD COMMENT

Login before adding your answer.

Traffic: 2909 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