Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • albrown415
    Junior Member
    • Jun 2010
    • 8

    how to place bowtie in "PATH" for use with TopHat

    Hello,
    I'm trying to get TopHat running but am getting the following error about not being able to find bowtie:

    >>python tophat -r 20 test_ref reads_1.fq reads_2.fq

    [Fri Jun 4 12:53:41 2010] Beginning TopHat run (v1.0.11)
    -----------------------------------------------
    [Fri Jun 4 12:53:41 2010] Preparing output location ./tophat_out/
    [Fri Jun 4 12:53:41 2010] Checking for Bowtie index files
    [Fri Jun 4 12:53:41 2010] Checking for reference FASTA file
    [Fri Jun 4 12:53:41 2010] Checking for Bowtie
    [FAILED]
    Error: bowtie not found on this system



    I am working on a Mac OS X machine and am unsure how to specify a "path". I usually place the program in the working directory. In this case, I have a TopHat directory where I've placed everything (the test data, the reference set, the TopHat executables, and the bowtie executables):

    bed_to_juncs juncs_db test_ref.2.ebwt
    bowtie library_stats test_ref.fa
    bowtie-build long_spanning_reads test_ref.rev.1.ebwt
    bowtie-inspect mask_sam test_ref.rev.2.ebwt
    closure_juncs prep_reads tophat
    contig_to_chr_coords reads_1.fq tophat_out
    extract_reads reads_2.fq tophat_reports
    fix_map_ordering segment_juncs
    gff_juncs test_ref.1.ebwt


    Any suggestions for how to get the computer to find Bowtie?
    Thanks.
  • zorph
    Member
    • May 2010
    • 40

    #2
    Depending on the shell you're using, you'll be doing the following:

    • If you are using the Bash shell, you have to edit the ".bashrc" file in your home directory by adding the following two (2) lines of code at the end:

    o PATH=$PATH:/path/to/bowtie/0.12.5
    o export PATH

    • If you are using the C shell, you have to edit the ".cshrc" file in your home directory by adding the following one (1) line to the end:

    o set path = (/path/to/bowtie/bowtie/0.12.5 $path)

    Hope this helps. To make sure it's in your path, you should just be able to type in "Bowtie" and the program should be brought up. Good Luck!
    Last edited by zorph; 06-08-2010, 11:52 AM.

    Comment

    • albrown415
      Junior Member
      • Jun 2010
      • 8

      #3
      Thanks for the quick reply, however, I'm still not sure how to change the path.

      How do I locate the bashrc on my computer? Does Mac OS X have this file? I'm having trouble locating it.

      To run TopHat, I'm currently typing the TopHat command directly into the Mac OS X Terminal.

      I believe that the Terminal program is based on bash. (When I typed "env | grep", I got "SHELL=/bin/bash"). Is this the Bash shell you're talking about? Will I be able to change the path by changing a setting in the Terminal?

      Alternatively, I feel like it should be easier to simply place bowtie in the TopHat directory. I've tried this and it's not working, but am hoping that it's simply a matter of determining the right combination of files in the working directory.

      Thanks.

      Comment

      • albrown415
        Junior Member
        • Jun 2010
        • 8

        #4
        Actually I was able to get it working using the description on the following webpage:



        Hope this helps anyone else with this problem.

        Comment

        • lmf_bill
          Member
          • Jul 2008
          • 36

          #5
          just do as zorph said. I think you need learn something about Linux/Unix/Mac.
          .bashrc or .bash_profile locate in your home folder.
          In the terminal, you can use "cd ~" to enter. then use "ls -a" you can see ".bashrc" or ".bash_profile" file; use vi .bashrc (or .bash_profile) to edit it; use "source .bashrc" (or .bash_profile)to enable it,

          good luck! if still not work, you really need more reading.

          Comment

          • albrown415
            Junior Member
            • Jun 2010
            • 8

            #6
            Thanks. I got it working earlier but my post didn't go through.

            Thanks for your help.

            Comment

            • repinementer
              Member
              • Dec 2009
              • 80

              #7
              Having the slightly same problem

              Although

              I configured tophat in tophat folder it self

              ./configure --prefix=/home/bogugk/rnaseq/software/tophat-1.0.13
              I set the path to Bowtie in tophat folder

              export PATH=$PATH:/home/bogugk/rnaseq/software/bowtie-0.12.5
              having error
              Code:
              [bogugk@Trivia bin]$ ./tophat -r 20 /home/bogugk/rnaseq/software/test_data/test_ref.fa /home/bogugk/rnaseq/software/test_data/reads_1.fq /home/bogugk/rnaseq/software/test_data/reads_2.fq 
              
              [Mon Jun 14 20:19:26 2010] Beginning TopHat run (v1.0.13)
              -----------------------------------------------
              [Mon Jun 14 20:19:26 2010] Preparing output location ./tophat_out/
              [Mon Jun 14 20:19:26 2010] Checking for Bowtie index files
              Error: Could not find Bowtie index files /home/bogugk/rnaseq/software/test_data/test_ref.fa.*
              Traceback (most recent call last):
                File "./tophat", line 1635, in ?
                  sys.exit(main())
                File "./tophat", line 1556, in main
                  (ref_fasta, ref_seq_dict) = check_index(bwt_idx_prefix)
                File "./tophat", line 634, in check_index
                  check_bowtie_index(idx_prefix)
                File "./tophat", line 569, in check_bowtie_index
                  exit(1)
              TypeError: 'str' object is not callable
              But I didn't give any path to BOWtie? is it causing the problem?
              Last edited by repinementer; 06-14-2010, 04:25 AM.

              Comment

              • lmf_bill
                Member
                • Jul 2008
                • 36

                #8
                "export PATH only change the current session. Once you log out, anything you've added to the path will be removed. "

                If you do not log out, I guess tophat does not accept this way of PATH setting. (I do not try this way)

                The way to modify the path variable permanently is to edit .bash_profile (assuming you are using the default bash shell).

                Maybe, it will help you

                Comment

                • repinementer
                  Member
                  • Dec 2009
                  • 80

                  #9
                  Ok. FInally I was able to install it by following your directions. thanx
                  Last edited by repinementer; 06-14-2010, 09:41 PM.

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                    by SEQadmin2


                    Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                    The systematic characterization of the human proteome has
                    ...
                    07-20-2026, 11:48 AM
                  • SEQadmin2
                    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                    by SEQadmin2



                    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                    ...
                    07-09-2026, 11:10 AM
                  • SEQadmin2
                    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                    by SEQadmin2



                    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                    07-08-2026, 05:17 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 07-20-2026, 11:10 AM
                  0 responses
                  9 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-13-2026, 10:26 AM
                  0 responses
                  30 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-09-2026, 10:04 AM
                  0 responses
                  41 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-08-2026, 10:08 AM
                  0 responses
                  26 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...