Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • NotFunny
    Junior Member
    • Sep 2014
    • 4

    tophat installation help, beginner

    Hi I'm hoping someone can help me trouble shoot this.

    I installed bowtie, samtool, boost and tophat as suggested on http://ccb.jhu.edu/software/tophat/tutorial.shtml. Everything went well, but when I run the test, I got the following error message. I guess something is run with the Samtools? but I'm not sure what the issue is. I searched previous posts regarding tophat installation but none seems to help. I'd really appreciate any help.



    [2014-09-12 17:29:53] Beginning TopHat run (v2.0.12)
    -----------------------------------------------
    [2014-09-12 17:29:53] Checking for Bowtie
    Bowtie version: 2.2.3.0
    [2014-09-12 17:29:53] Checking for Samtools
    Traceback (most recent call last):
    File "/Users/xx/bin/tophat", line 4087, in <module>
    sys.exit(main())
    File "/Users/xx/bin/tophat", line 3885, in main
    check_samtools()
    File "/Users/xx/bin/tophat", line 1559, in check_samtools
    samtools_version_str, samtools_version_arr = get_samtools_version()
    File "/Users/xx/bin/tophat", line 1541, in get_samtools_version
    samtools_version_arr = [int(version_match.group(x)) for x in [1,2,3]]
    AttributeError: 'NoneType' object has no attribute 'group'
  • alex_log
    Junior Member
    • Oct 2012
    • 1

    #2
    I have similar troubles running tophat 2.0.12 under Ubuntu 14.04.1:

    tophat -p 16 -G genes.gtf -o M1_R1_thout genome SRR452328_forward_paired.fq.gz SRR452328_reverse_paired.fq.gz

    [2014-09-12 13:01:39] Beginning TopHat run (v2.0.12)
    -----------------------------------------------
    [2014-09-12 13:01:39] Checking for Bowtie
    Bowtie version: 2.2.3.0
    [2014-09-12 13:01:39] Checking for Samtools
    Traceback (most recent call last):
    File "/home/alex/bin/tophat", line 4087, in <module>
    sys.exit(main())
    File "/home/alex/bin/tophat", line 3885, in main
    check_samtools()
    File "/home/alex/bin/tophat", line 1559, in check_samtools
    samtools_version_str, samtools_version_arr = get_samtools_version()
    File "/home/alex/bin/tophat", line 1541, in get_samtools_version
    samtools_version_arr = [int(version_match.group(x)) for x in [1,2,3]]
    AttributeError: 'NoneType' object has no attribute 'group'
    alex@alex-Precision-T7600:~/Amin/sra_files$ tophat -p 16 -G genes.gtf -o M1_R1_thout genome SRR452328_forward_paired.fq.gz

    First thought was that possibly something wrong with my data. Then I used reads files from test_data but it resulted in similar error message:

    #http://ccb.jhu.edu/software/tophat/tutorial.shtml

    tophat -r 20 test_ref reads_1.fq reads_2.fq

    [2014-09-12 21:57:52] Beginning TopHat run (v2.0.12)
    -----------------------------------------------
    [2014-09-12 21:57:52] Checking for Bowtie
    Bowtie version: 2.2.3.0
    [2014-09-12 21:57:52] Checking for Samtools
    Traceback (most recent call last):
    File "/home/alex/bin/tophat", line 4087, in <module>
    sys.exit(main())
    File "/home/alex/bin/tophat", line 3885, in main
    check_samtools()
    File "/home/alex/bin/tophat", line 1559, in check_samtools
    samtools_version_str, samtools_version_arr = get_samtools_version()
    File "/home/alex/bin/tophat", line 1541, in get_samtools_version
    samtools_version_arr = [int(version_match.group(x)) for x in [1,2,3]]
    AttributeError: 'NoneType' object has no attribute 'group'

    Samtools version was not printed out... I applied the new 1.0 release ... Possibly something wrong with the binary... I have tried samtools-0.1.19 but it resulted in the same error message.
    Dear bioinformatics community, please help to fix it.

    Comment

    • Cytosine
      Member
      • Mar 2014
      • 22

      #3
      Your tophat compilation went without any problems? It should notify you at that point if it cannot find samtools.

      Try doing a clean reinstall and note any logged warnings or errors being reported by the following commands:

      Code:
      ./configure --prefix=/path/to/tophat_base_dir --with-boost=/path/to/boost_prefix_dir \
       --with-bam=/path/to/libbam_prefix_dir
      
      make
      Post logs of those so we get a better idea what is going on.

      Comment

      • NotFunny
        Junior Member
        • Sep 2014
        • 4

        #4
        Thanks for the reply. I installed the binary tophat file, so there was no complain. However, when I tried to use the source file to build tophat, there was some complaining about something like can't find the bam files. I did give the correct directories when using the configure command. I'll need to redo this to give you the exact error message. In the meanwhile any suggestion is appreciated.

        Comment

        • NotFunny
          Junior Member
          • Sep 2014
          • 4

          #5
          Update: This is what I tried. I downloaded the tophat source file, and tried the following command, as I put everything in the $HOME/bin folder.

          ./configure --prefix=$HOME/bin --with-boost=$HOME/bin --with-bam=$HOME/bin

          I got the following error:

          checking for bamlib... configure: error: We could not detect the bam libraries (version or higher). If you have a staged bam library (still not installed) please specify $BAM_ROOT in your environment and do not give a PATH to --with-bam option.

          I also double checked, and seems all files are where they're supposed to be.

          Any help is greatly appreciated.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Have you installed SAMTools following the directions found here: http://ccb.jhu.edu/software/tophat/tutorial.shtml There is a section on copying libbam.a and the header files to a specific directory on your computer.

            Comment

            • NotFunny
              Junior Member
              • Sep 2014
              • 4

              #7
              Yes, I did that. I also verified that the files on in the correct folders. In my case it's $HOME/bin/lib and $HOME/bin/include/bam.

              Originally posted by GenoMax View Post
              Have you installed SAMTools following the directions found here: http://ccb.jhu.edu/software/tophat/tutorial.shtml There is a section on copying libbam.a and the header files to a specific directory on your computer.

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                Have you tried to provide actual paths (instead of just $HOME). TopHat may not be correctly expanding $HOME.

                Comment

                • muenster
                  Junior Member
                  • Sep 2014
                  • 1

                  #9
                  I could solve the problem compiling the samtools with CFLAGS=-fPIC on fedora20

                  cd samtools-0.1.19
                  make CFLAGS=-fPIC

                  afterwards copying samtools and misc/* bcftools/bcftools to a bin in your $PATH

                  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-24-2026, 12:17 PM
                  0 responses
                  25 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-23-2026, 11:41 AM
                  0 responses
                  20 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-20-2026, 11:10 AM
                  0 responses
                  28 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-13-2026, 10:26 AM
                  0 responses
                  38 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...