Bioinformatics noob here,
I just downloaded the blast command line applications and I would like to make a database of a transcriptome that I have acquired. It is labeled as firefly.fas
and I have put the file into a folder on my desktop in the path /Desktop/Science/ncbi/
.
I've been typing this into the command line:
-bash: Desktop/Science/ncbi/: is a directory
makeblastdb -in firefly.fas -dbtype nucl -parse_seqids -out FF
Building a new DB, current time: 12/18/2014 15:23:12
New DB name: FF
New DB title: firefly.fas
Sequence type: Nucleotide
Keep Linkouts: T
Keep MBits: T
Maximum file size: 1000000000B
BLAST options error: File firefly.fas does not exist
Everytime I always get that the files does not exist. I am sure that it is a fasta file, and that it is in the right folder. I even tried sample fasta sequences that I downloaded and got the same error. It is probably a simple problem to solve, but I cannot seem to get past it.
Is it
/Desktop/Science/ncbi
or**~**/Desktop/Science/ncbi
? That could be a possible problem. Also, could you please give the output of runningls -l
in the working folder?Tried both
/Desktop/Science/ncbi
and~/Desktop/Science/ncbi
, both gave the same error.Here is the output of running
ls -l
:Please run
ls -l
on the directory in which you have the fasta file. And it looks like you're on a Mac. The path you're looking for is~/Desktop/Science/ncbi
.Run this:
Ok after running that I get this output:
Alright, I tried doing the makeblastdb after running the command above and it was successful. The new database FF is in my directory folder, thanks a lot for the help!
Any idea of what the problem was? What exactly does the
~
before the path do and what thels -l
does?Hi,
You were trying to run the program in a different directory than the one that had your files. Computers are dumb. They have to be shown which files you're referring to by
running the command from the directory that contains the files. pointing the computer to the location of the command(s) as well as the file(s). Adding appropriate locations to the$PATH
environment variable helps us avoid specifying the full path to frequently used command(s).~
is Unix shorthand for user's home directory./
is Unix's way of representing the topmost directory of the entire file system.~
on Mac corresponds to/Users/<username>
(which in your case should be/Users/coreyhowe
ls -l
is a command to merely list all contents in the current directory with some details. I asked for it so I could check if the directory contained the fasta file and if you had the requisite permissions to access (read) the file.directory = folder (on Unix).