Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • zslee
    Member
    • May 2009
    • 29

    some problem with tophat

    has anyone here used tophat ?
    when i map single-end solid sequences(fastq format) to hg18 as follow:
    ~/bin/tophat bowtie-0.11.3_index/hg18 query.fq -o mapre -a 5 -m 2 -i 70 -I 5000 --solexa1.3-quals -g 40 -p 4

    there is such error:
    Error: you must set the mean inner distance between mates with -r
    Traceback (most recent call last):
    File "/picb/home55/zsli/Public/mapping/bin/tophat", line 1487, in ?
    sys.exit(main())
    File "/picb/home55/zsli/Public/mapping/bin/tophat", line 1402, in main
    exit(1)
    TypeError: 'str' object is not callable

    what's going on ?
    can anyone help me? thanks in advance~~
  • RockChalkJayhawk
    Senior Member
    • Mar 2009
    • 192

    #2
    Wrong forum

    removed...I was in the wrong forum
    Last edited by RockChalkJayhawk; 10-30-2009, 10:10 AM.

    Comment

    • Cole Trapnell
      Senior Member
      • Nov 2008
      • 213

      #3
      Originally posted by zslee View Post
      has anyone here used tophat ?
      when i map single-end solid sequences(fastq format) to hg18 as follow:
      ~/bin/tophat bowtie-0.11.3_index/hg18 query.fq -o mapre -a 5 -m 2 -i 70 -I 5000 --solexa1.3-quals -g 40 -p 4

      there is such error:
      Error: you must set the mean inner distance between mates with -r
      Traceback (most recent call last):
      File "/picb/home55/zsli/Public/mapping/bin/tophat", line 1487, in ?
      sys.exit(main())
      File "/picb/home55/zsli/Public/mapping/bin/tophat", line 1402, in main
      exit(1)
      TypeError: 'str' object is not callable

      what's going on ?
      can anyone help me? thanks in advance~~
      In the command above, you are placing the arguments (the index name and the FASTQ file of your reads) before the options. It should be:

      tophat -o mapre -a 5 -m 2 -i 70 -I 5000 --solexa1.3-quals -g 40 -p 4 bowtie-0.11.3_index/hg18 query.fq

      Comment

      • zslee
        Member
        • May 2009
        • 29

        #4
        yes, that works, thanks a lot !

        Comment

        • oxydeepu
          Member
          • Jul 2011
          • 41

          #5
          Similiar sort of problem.

          Hi all,

          I am getting this error

          Traceback (most recent call last):
          File "/home/deepak/bioTools/tophat-1.3.1.Linux_x86_64//tophat", line 2607, in ?
          sys.exit(main())
          File "/home/deepak/bioTools/tophat-1.3.1.Linux_x86_64//tophat", line 2504, in main
          params.read_params = check_reads_format(params, reads_list)
          File "/home/deepak/bioTools/tophat-1.3.1.Linux_x86_64//tophat", line 1234, in check_reads_format
          zf = ZReader(f_name, params.system_params)
          File "/home/deepak/bioTools/tophat-1.3.1.Linux_x86_64//tophat", line 1185, in __init__
          self.file=open(filename)
          IOError: [Errno 2] No such file or directory: '-o'


          while running tophat

          tophat -r 200 -i 50 -I 250000 /home/deepak/bowtie-0.12.5/indexes/hs_genome 37_NoIndex_L001_R1_001.fastq -o tophat_new &

          Please help me with this error.

          Thanking you in advance.

          Regards
          Deepak

          Comment

          • NicoBxl
            not just another member
            • Aug 2010
            • 264

            #6
            maybe try the last version of tophat 1.4.1

            Originally posted by oxydeepu View Post
            Hi all,

            I am getting this error

            Traceback (most recent call last):
            File "/home/deepak/bioTools/tophat-1.3.1.Linux_x86_64//tophat", line 2607, in ?
            sys.exit(main())
            File "/home/deepak/bioTools/tophat-1.3.1.Linux_x86_64//tophat", line 2504, in main
            params.read_params = check_reads_format(params, reads_list)
            File "/home/deepak/bioTools/tophat-1.3.1.Linux_x86_64//tophat", line 1234, in check_reads_format
            zf = ZReader(f_name, params.system_params)
            File "/home/deepak/bioTools/tophat-1.3.1.Linux_x86_64//tophat", line 1185, in __init__
            self.file=open(filename)
            IOError: [Errno 2] No such file or directory: '-o'


            while running tophat

            tophat -r 200 -i 50 -I 250000 /home/deepak/bowtie-0.12.5/indexes/hs_genome 37_NoIndex_L001_R1_001.fastq -o tophat_new &

            Please help me with this error.

            Thanking you in advance.

            Regards
            Deepak

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              Originally posted by oxydeepu View Post
              tophat -r 200 -i 50 -I 250000 /home/deepak/bowtie-0.12.5/indexes/hs_genome 37_NoIndex_L001_R1_001.fastq -o tophat_new &
              Aside from using a newer version, you might try "tophat -o tophat_new -r 200 -i 50 -I 250000 /home/deepak/bowtie-0.12.5/indexes/hs_genome 37_NoIndex_L001_R1_001.fastq" instead. Depending on how tophat parses how it's called, what you wrote as a command could cause an issue (the error suggests that it's trying to open a file called "-o", suggesting that it's not seeing that as an option but a file name).

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                by SEQadmin2


                Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                ...
                06-02-2026, 10:05 AM
              • SEQadmin2
                Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                by SEQadmin2


                With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                Introduction

                Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                05-22-2026, 06:42 AM
              • SEQadmin2
                Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                by SEQadmin2

                Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                05-06-2026, 09:04 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 06-02-2026, 12:03 PM
              0 responses
              19 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 06-02-2026, 11:40 AM
              0 responses
              14 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 05-28-2026, 11:40 AM
              0 responses
              29 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 05-26-2026, 10:12 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Working...