how I can put bowtie2 with tophat2 in the path?
1
0
Entering edit mode
9.2 years ago
zizigolu ★ 4.3k

Hey guys,

[izadi@lbox161 ~]$ bash
[izadi@lbox161 ~]$ cd /usr/data/nfs6/izadi/gij/test_data
[izadi@lbox161 test_data]$ pwd
/usr/data/nfs6/izadi/gij/test_data
[izadi@lbox161 test_data]$ ls
reads_1.fq       test_ref.2.bt2   test_ref.fa          test_ref.rev.2.ebwt
reads_2.fq       test_ref.2.ebwt  test_ref.rev.1.bt2
test_ref.1.bt2   test_ref.3.bt2   test_ref.rev.1.ebwt
test_ref.1.ebwt  test_ref.4.bt2   test_ref.rev.2.bt2
[izadi@lbox161 test_data]$ export TOP=/usr/data/nfs6/izadi/main/tophat-2.1.0.Linux_x86_64
[izadi@lbox161 test_data]$ echo $TOP
/usr/data/nfs6/izadi/main/tophat-2.1.0.Linux_x86_64
[izadi@lbox161 test_data]$ $TOP/tophat -r 20 test_ref reads_1.fq reads_2.fq

[2015-08-31 17:07:14] Beginning TopHat run (v2.1.0)
-----------------------------------------------
[2015-08-31 17:07:14] Checking for Bowtie
  Bowtie 2 not found, checking for older version..
Error: Bowtie not found on this system.
[izadi@lbox161 test_data]$

What should I do now please? I'm exhausted, I am trying for hours

RNA-Seq tophat2 bowtie2 • 9.0k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
0
Entering edit mode

you means set the path for bowtie2?

ADD REPLY
0
Entering edit mode

Goutham please,

suppose you have the test data in /usr/data/nfs6/izadi/gij/test_data

bowtie2 in /usr/people/home/izadi/fereshteh/bowtie2-2.2.5

and tophat in /usr/data/nfs6/izadi/main/tophat-2.1.0.Linux_x86_64

then what I should do to run

tophat -r 20 test_ref reads_1.fq reads_2.fq

as I described above

ADD REPLY
0
Entering edit mode

Add bowtie2 executable to your $PATH.

ADD REPLY
0
Entering edit mode

how mix two paths? both bowtie2 and tophat

ADD REPLY
1
Entering edit mode

See here for Fedora (though the method is similar for all *nix): https://ask.fedoraproject.org/en/question/44627/setting-permanent-path/

Add as many directories as you need that contain the relevant executables to $PATH (tophat, bowtie2 etc)

ADD REPLY
1
Entering edit mode

Fereshteh,

If you add the paths of bowtie2 and tophat2 to your $PATH then bowtie should be able to find tophat. If you are on a Unix/Linux platform you can do this by:

export PATH="$PATH:/path/to/bowtie2:/different/path/to/tophat2";
ADD REPLY
0
Entering edit mode

thanks genomax2 for your patience...thank you alolex

ADD REPLY
0
Entering edit mode

I did like so

[izadi@lbox161 ~]$ bash
[izadi@lbox161 ~]$ cd /usr/data/nfs6/izadi/gij/test_data
[izadi@lbox161 test_data]$ ls
reads_1.fq       test_ref.2.bt2   test_ref.fa          test_ref.rev.2.ebwt
reads_2.fq       test_ref.2.ebwt  test_ref.rev.1.bt2   tophat_out
test_ref.1.bt2   test_ref.3.bt2   test_ref.rev.1.ebwt
test_ref.1.ebwt  test_ref.4.bt2   test_ref.rev.2.bt2
[izadi@lbox161 test_data]$ export PATH="$PATH:/usr/people/home/izadi/fereshteh/bowtie2-2.2.5:/usr/data/nfs6/izadi/main/tophat-2.1.0.Linux_x86_64";
[izadi@lbox161 test_data]$ echo $TOP
[izadi@lbox161 test_data]$ $TOP/tophat -r 20 test_ref reads_1.fq reads_2.fq
bash: /tophat: No such file or directory
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[izadi@lbox161 test_data]$ 

what I did wrong please?

ADD REPLY
1
Entering edit mode
[izadi@lbox161 test_data]$ echo $TOP

This did not produce any output. Looks like $TOP got reset to null.

If your $PATH (check by echo $PATH) looks correct then just run from within test_data directory

$ tophat -r 20 test_ref reads_1.fq reads_2.fq
ADD REPLY
0
Entering edit mode

thank you

I could run tophat

then may you please tell me what is the further steps that someone might do using these resulted files in output?

ADD REPLY
0
Entering edit mode

@alolex Hi, I am working on ubuntu 16.04 and tried using your command to add tophat and bowtie to my path

$ export PATH=$PATH:$home/gjjha/Downloads/softwares/bowtie2-2.2.9/index:/home/gjjha/Downloads/softwares/tophat-2.1.1

but when I tried running tophat from a directory containing the fq files to be mapped, it says that tophat can't find the b2 index files. I have already created the index which is in the bowtie2 index directory. What am I doing wrong?

ADD REPLY
1
Entering edit mode
9.2 years ago
wrf ▴ 70

in general for adding programs to your path, if you are on a linux system, you can modify the path of .bashrc in the home directory. For Mac, this should be .bash_profile

Add the command suggested by alolex to the end of the file, or somewhere in the middle (it doesn't really matter):

export PATH=/new/path/to/some/program:$PATH

If this is your personal computer, you can move the binaries to a folder in the path, or add links to those programs from a folder that is already in the path. You can see which folders are in your path by:

echo $PATH

Also, generally, to see if a program is in your path, or where it is, use which:

which bowtie2
ADD COMMENT

Login before adding your answer.

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