Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • lei
    Member
    • Mar 2010
    • 14

    a question about tophat

    I am using tophap with solid single-end data.
    the command line is :
    tophat --color --quals -p 8 -o $outdir --library-type fr-secondstrand -G $gtffile hg19 $reads $qual

    it reports the error message:
    Error: you must set the mean inner distance between mates with -r

    but -r is only for paired-end data, so I don't know what should I do.
  • seqguy
    Junior Member
    • Oct 2010
    • 8

    #2
    Dear Lie

    You have to rearrange tophat parameters to run it successfully. Tyr the below mentioned command:

    ./tophat -G <path to .gtf file> --color --quals <path to index folder/index prefix> <path to .csfasta file> <path to .qual file>

    Comment

    • lei
      Member
      • Mar 2010
      • 14

      #3
      Dear seqguy
      Thanks a lot!
      I runned the command in your order. It started to run, but reported another error:
      IOError: [Errno 2] No such file or directory: '/home/lei/solid/mec1_f3/tmp/left_kept_reads_missing.fq'
      But I can find the file left_kept_reads_missing.fq in the tmp directory.
      So do you have any idea what's going on this time?

      Comment

      • seqguy
        Junior Member
        • Oct 2010
        • 8

        #4
        Could you please let me know the configuration of the system you are using to run this pipeline, the organism genome size and also if you are using root user or not.

        Comment

        • lei
          Member
          • Mar 2010
          • 14

          #5
          it was running on a Server, the CPU is 24x 2.3 GHz, the Memory is 80 GB, and the OS is suse11.0.
          I used the human genome from UCSC.
          I'm not the root user.

          Comment

          • lei
            Member
            • Mar 2010
            • 14

            #6
            It's strange that this time, I can run it with my previous parameters' order. But still report the same error message: IOError: [Errno 2] No such file or directory: '/home/lei/solid/mec1_f3/tmp/left_kept_reads_missing.fq'

            Comment

            • seqguy
              Junior Member
              • Oct 2010
              • 8

              #7
              Have you created the bowtie index of your reference genome with -C option?

              Comment

              • lei
                Member
                • Mar 2010
                • 14

                #8
                sure, I runned tophat before with illumina data, everything was fine. those error just happened when I use solid data.

                Comment

                • seqguy
                  Junior Member
                  • Oct 2010
                  • 8

                  #9
                  1) Check if your GTF and reference genome files are having same naming convention for chromosomes.
                  2) Reference genome index should be in colorspace.
                  3) Check if .csfasta and .qual files are having same counts.

                  Comment

                  • lei
                    Member
                    • Mar 2010
                    • 14

                    #10
                    yes, 1),2),3) are all fine.
                    1) it's possible that the genome fasta file has "chr1" etc. whereas the GTF file has "1" etc. but I ran cuffdiff from the same author successfully with the same GTF file and the original genome from which the bowtie index was built is the same as the one I used there.
                    3) the alignments I ran would never have worked if there had been a different number of reads in the csfasta and .qual files.

                    Maybe I need to pose my question again to make it clear:

                    The first time I run the tophat using qsub. It reports the error:
                    Error: you must set the mean inner distance between mates with -r

                    Then, I rearrange the parameters, test it in a local machine with both parameters' orders mentioned above, get another error:
                    IOError: [Errno 2] No such file or directory: '/home/lei/solid/mec1_f3/tmp/left_kept_reads_missing.fq'

                    Now, I test it using qsub again, get the same error again:
                    Error: you must set the mean inner distance between mates with -r

                    Comment

                    • seqguy
                      Junior Member
                      • Oct 2010
                      • 8

                      #11
                      could you please share the exact command you are using to run tophat?

                      Comment

                      • lei
                        Member
                        • Mar 2010
                        • 14

                        #12
                        the first script is :

                        #!/bin/bash

                        #PBS -N Tophat_lib1
                        #PBS -l nodes=1pn=8:lsdf
                        #PBS -l walltime=50:00:00
                        #PBS -l mem=5g
                        #PBS -M [email protected]
                        #PBS -m ae
                        #PBS -j eo
                        #PBS -e /home/gu/solid/lib1/error

                        # environment variable for the indexes
                        BOWTIE_INDEXES=/home/gu/solid/bowtieIndex/
                        export BOWTIE_INDEXES
                        reads=/home/gu/solid/lib1/138000338_20101201_FRAG_BC_SEQ0014_bcSample1_lib1_F3.csfasta
                        qual=/home/gu/solid/lib1/138000338_20101201_FRAG_BC_SEQ0014_bcSample1_lib1_F3_QV.qual
                        outdir= /home/gu/solid/lib1
                        gtffile=/ibios/co01/hutter/PlassData/Ensembl57_transcripts_hg19.gtf

                        tophat -G $gtffile --color --quals -p 8 -o $outdir --library-type fr-secondstrand hg19 $reads $qual

                        the error code is :Error: you must set the mean inner distance between mates with -r

                        Comment

                        • lei
                          Member
                          • Mar 2010
                          • 14

                          #13
                          the econd script is :

                          #!/bin/bash

                          #PBS -N Tophat_lib1
                          #PBS -l nodes=1pn=8:lsdf
                          #PBS -l walltime=50:00:00
                          #PBS -l mem=5g
                          #PBS -M [email protected]
                          #PBS -m ae
                          #PBS -j eo
                          #PBS -e /home/gu/solid/lib1/error

                          # environment variable for the indexes
                          BOWTIE_INDEXES=/home/gu/solid/bowtieIndex/
                          export BOWTIE_INDEXES
                          #reads=/home/gu/solid/lib1/138000338_20101201_FRAG_BC_SEQ0014_bcSample1_lib1_F3.csfasta
                          #qual=/home/gu/solid/lib1/138000338_20101201_FRAG_BC_SEQ0014_bcSample1_lib1_F3_QV.qual
                          #outdir= /home/gu/solid/lib1
                          #gtffile=/ibios/co01/hutter/PlassData/Ensembl57_transcripts_hg19.gtf

                          tophat --color --quals -p 8 -o /home/gu/solid/lib1 --library-type fr-secondstrand -G /ibios/co01/hutter/PlassData/Ensembl57_transcripts_hg19.gtf /icgc/lsdf/mb/analysis/hutter/bowtieIndex/hg19 /home/gu/solid/lib1/138000338_20101201_FRAG_BC_SEQ0014_bcSample1_lib1_F3.csfasta /home/gu/solid/lib1/138000338_20101201_FRAG_BC_SEQ0014_bcSample1_lib1_F3_QV.qual

                          the error code is :
                          [Thu Mar 17 16:12:28 2011] Beginning TopHat run (v1.2.0)
                          -----------------------------------------------
                          [Thu Mar 17 16:12:28 2011] Preparing output location /home/gu/solid/lib1/
                          [Thu Mar 17 16:12:28 2011] Checking for Bowtie index files
                          [Thu Mar 17 16:12:28 2011] Checking for reference FASTA file
                          [Thu Mar 17 16:12:28 2011] Checking for Bowtie
                          Bowtie version: 0.12.7.0
                          [Thu Mar 17 16:12:28 2011] Checking for Samtools
                          Samtools Version: 0.1.12a
                          [Thu Mar 17 16:12:28 2011] Checking reads
                          min read length: 50bp, max read length: 50bp
                          format: fasta
                          [Thu Mar 17 16:14:07 2011] Reading known junctions from GTF file
                          [Thu Mar 17 16:18:51 2011] Mapping reads against hg19 with Bowtie
                          [Thu Mar 17 16:18:51 2011] Joining segment hits
                          Traceback (most recent call last):
                          File "/ibios/tbi_cluster/11.0/x86_64/bin/tophat", line 2346, in <module>
                          sys.exit(main())
                          File "/ibios/tbi_cluster/11.0/x86_64/bin/tophat", line 2304, in main
                          user_supplied_deletions)
                          File "/ibios/tbi_cluster/11.0/x86_64/bin/tophat", line 1972, in spliced_alignment
                          segment_len)
                          File "/ibios/tbi_cluster/11.0/x86_64/bin/tophat", line 1545, in split_reads
                          reads_file = open(reads_filename)
                          IOError: [Errno 2] No such file or directory: '/home/gu/solid/lib1/tmp/left_kept_reads_missing.fq'

                          Comment

                          Latest Articles

                          Collapse

                          • SEQadmin2
                            Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                            by SEQadmin2


                            I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


                            Here are nine questions we think about, in roughly the order they matter, before...
                            06-18-2026, 07:11 AM
                          • 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

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, 06-17-2026, 06:09 AM
                          0 responses
                          25 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-09-2026, 11:58 AM
                          0 responses
                          42 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-05-2026, 10:09 AM
                          0 responses
                          48 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 06-04-2026, 08:59 AM
                          0 responses
                          49 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...