Entering edit mode
8.0 years ago
zizigolu
★
4.3k
Hi,
I am using a fedora virtualbox on windows 7 but by below code I am getting error who can tell me what I am doing wrong?
help me please
[user@localhost ~]$ bash
[user@localhost ~]$ cd /home/user/Downloads/bowtie2-2.2.9/
[user@localhost bowtie2-2.2.9]$ pwd
/home/user/Downloads/bowtie2-2.2.9
[user@localhost bowtie2-2.2.9]$ export TOP=/home/user/Downloads/tophat-2.1.1.Linux_x86_64/
[user@localhost bowtie2-2.2.9]$ echo $TOP
/home/user/Downloads/tophat-2.1.1.Linux_x86_64/
[user@localhost bowtie2-2.2.9]$ $TOP/tophat-p 8 -G af.gff3 -o 1_thout genome 1.fq
bash: /home/user/Downloads/tophat-2.1.1.Linux_x86_64//tophat-p: No such file or directory
[user@localhost bowtie2-2.2.9]$ bash
[user@localhost bowtie2-2.2.9]$ export TOP=/home/user/Downloads/tophat-2.1.1.Linux_x86_64/
[user@localhost bowtie2-2.2.9]$ echo $TOP
/home/user/Downloads/tophat-2.1.1.Linux_x86_64/
[user@localhost bowtie2-2.2.9]$ $TOP/tophat-p 8 -G af.gff3 -o 1_thout genome 1.fq
bash: /home/user/Downloads/tophat-2.1.1.Linux_x86_64//tophat-p: No such file or directory
[user@localhost bowtie2-2.2.9]$
sorry does this make difference running tophat on virtual box fedora or linux itself????
sorry does this make difference running tophat on virtual box fedora or linux itself????
It makes no difference.
Just use the name of the program to call it: tophat
-p is an argument to the program. There should always be a space between the call to the program, and the arguments to the program.
sorry should i do something extra for installing tophat in virtual box fedora or simply gunzip the file will suffice?
Normally, unzipping the file should suffice.
You might want to add tophat to your PATH, and you might want to verify that Python2 is installed, which should be the case.
oh...python is not installed :(
Why use Fedora? I'd recommend Bio-Linux or Ubuntu. Bio-Linux comes with everything installed and Ubuntu has
sudo apt-get install $WHATEVER_I_WANT
thank you Ram for your kindly tips
Also, check out if you can use yum. AFAIK, Fedora and yum work well together.
"Installing" is a transparent matter with Linux, unlike Windows or OS X (to a certain extent). When you install an application in linux, you essentially configure and build the application so its code is compiled as suited to your machine. Once this gets done, you get a file that you can execute (Let's call this the binary). Also, in many cases, you might even be given the binary directly/in a zip file.
Now when you execute a command, you are merely specifying the name of the binary to the Linux shell. If the binary is not found in the directory you're in at that moment, the shell has to figure out where this binary is, and then execute it. For the shell to know where the binary is, you need to add the path to the directory containing the binary to your $PATH variable. That way, the shell knows to check the directories in the $PATH variable for a binary when it is not found in the current directory.
This is how I learnt "Linux installation":
configure
andmake
) - this is the part that Windows hides from you. Rarely do you ever need to tweak this part in Windows.$PATH
variable. Better yet, include in~/.bashrc
the line that adds the directory to your$PATH
. That way, it automatically adds the directory to your$PATH
each time you log in. - This is kind of like creating a shortcut on your desktop.