Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daanum
    Member
    • Nov 2015
    • 24

    #1

    Unable to run Tophat2

    Hi,

    I am unable to run Tophat2 as I get an error.

    Here is the command I run: tophat2 -p 5 -r 62 –library-type fr-firststrand -G /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Annotation/Genes/gene.gtf –o /home/jmotwani/RNASeq/Alignment_Tophat2 --BOWTIE2_INDEXES /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Sequence/Bowtie2Index/ C95VLANXX-2046D-01-01-01_L003_R1_Trimmed.fastq C95VLANXX-2046D-01-01-01_L003_R2_Trimmed.fastq

    I get the following error:


    [2016-05-22 22:20:05] Beginning TopHat run (v2.1.1)
    -----------------------------------------------
    [2016-05-22 22:20:05] Checking for Bowtie
    Bowtie version: 2.2.9.0
    [2016-05-22 22:20:05] Checking for Bowtie index files (genome)..
    Error: Could not find Bowtie 2 index files (–library-type.*.bt2l)


    The indexed genome was downloaded from Illumina iGenomes page. Do I have to build it after downloading it? I downloaded the genome, gtf file, and indexed files and gave the path of those files in the command above.

    Could anyone please comment or advise on this.

    Thanks for your time.

    Regards, J
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    You need to provide a basename for the index files (which in this case should be genome). So the genome index file path becomes

    Code:
    /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Sequence/Bowtie2Index/genome
    You don't need to include --BOWTIE2_INDEXES. That is a shell variable you could set beforehand.

    Comment

    • daanum
      Member
      • Nov 2015
      • 24

      #3
      Thanks Genomax.

      I removed the BOWTIE2_INDEXES option and gave the path as suggested above but I still get the same error.

      I am wondering if its due to Bowtie2 index version incompatibility. Any comments?

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Can you show us a listing of

        Code:
        $ ls -lh /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Sequence/Bowtie2Index/

        Comment

        • daanum
          Member
          • Nov 2015
          • 24

          #5
          The Bowtie2Index folder has following files:

          genome.1.bt2
          genome.2.bt2
          genome.3.bt2
          genome.4.bt2
          genome.fa
          genome.rev.1.bt2
          genome.rev.2.bt2
          tophat_out

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Can you try the following? Looks like you had a single - in your library-type option before.

            Code:
            tophat2 -p 5 -r 62 --library-type fr-firststrand -G /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Annotation/Genes/gene.gtf –o /home/jmotwani/RNASeq/Alignment_Tophat2 /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Sequence/Bowtie2Index/genome C95VLANXX-2046D-01-01-01_L003_R1_Trimmed.fastq C95VLANXX-2046D-01-01-01_L003_R2_Trimmed.fastq

            Comment

            • daanum
              Member
              • Nov 2015
              • 24

              #7
              I tried the following:

              tophat2 -p 5 -r 62 -–library-type fr-firststrand --GTF /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Annotation/Genes/gene.gtf –o /home/jmotwani/RNASeq/Alignment_Tophat2 /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Sequence/Bowtie2Index/genome C95VLANXX-2046D-01-01-01_L003_R1_Trimmed.fastq C95VLANXX-2046D-01-01-01_L003_R2_Trimmed.fastq

              but now I get a different error:
              tophat: option -? not recognized
              for detailed help see http://ccb.jhu.edu/software/tophat/manual.shtml

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                Try

                Code:
                tophat2 --num-threads 5 --mate-inner-distance 62 --library-type fr-firststrand --GTF /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Annotation/Genes/gene.gtf --output-dir /home/jmotwani/RNASeq/Alignment_Tophat2 /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Sequence/Bowtie2Index/genome C95VLANXX-2046D-01-01-01_L003_R1_Trimmed.fastq C95VLANXX-2046D-01-01-01_L003_R2_Trimmed.fastq
                There is one last possibility. TopHat may not be liking the - you have in your fastq file names. So if you could change those to "_" if the above does not work.

                Code:
                tophat2 --num-threads 5 --mate-inner-distance 62 --library-type fr-firststrand --GTF /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Annotation/Genes/gene.gtf --output-dir /home/jmotwani/RNASeq/Alignment_Tophat2 /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Sequence/Bowtie2Index/genome C95VLANXX_2046D_01_01_01_L003_R1_Trimmed.fastq C95VLANXX_2046D_01_01_01_L003_R2_Trimmed.fastq

                Comment

                • daanum
                  Member
                  • Nov 2015
                  • 24

                  #9
                  Thank you. The command worked this time but partly
                  Command :

                  tophat2 --num-threads 5 --mate-inner-dist 62 --library-type fr-firststrand --GTF /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Annotation/Genes/genes.gtf --output-dir /home/jmotwani/RNASeq/Alignment_Tophat2 /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Sequence/Bowtie2Index/genome read1.fastq read2.fastq

                  Output:


                  [2016-05-23 22:07:53] Beginning TopHat run (v2.1.1)
                  -----------------------------------------------
                  [2016-05-23 22:07:53] Checking for Bowtie
                  Bowtie version: 2.2.9.0
                  [2016-05-23 22:07:53] Checking for Bowtie index files (genome)..
                  [2016-05-23 22:07:53] Checking for reference FASTA file
                  [2016-05-23 22:07:53] Generating SAM header for /home/jmotwani/mydata/Genomes/Homo_sapiens/Ensembl/GRCh37/Sequence/Bowtie2Index/genome
                  [2016-05-23 22:07:55] Reading known junctions from GTF file
                  [2016-05-23 22:08:28] Preparing reads
                  [FAILED]
                  Error running 'prep_reads'
                  Error: qual length (111) differs from seq length (106) for fastq record !

                  Comment

                  • GenoMax
                    Senior Member
                    • Feb 2008
                    • 7142

                    #10
                    That indicates that there is an error in your reads file. What trimming program did you uses (and was it paired-end aware)?

                    Comment

                    • daanum
                      Member
                      • Nov 2015
                      • 24

                      #11
                      I used a in-house script (cleanadaptors) to trim the raw fastq files. I run the command to trim the data in the following way:

                      cleanadaptors -I /home/jmotwani/RNASeq/contam.fa -q 20 -x 25 -F C95VLANXX-2046D-01-01-01_L003_R1.fastq -o C95VLANXX-2046D-01-01-01_L003_R1_Trimmed.fastq -G C95VLANXX-2046D-01-01-01_L003_R2.fastq -O C95VLANXX-2046D-01-01-01_L003_R2_trimmed.fastq

                      -q is for quality and -x is for min length of the read

                      Comment

                      • GenoMax
                        Senior Member
                        • Feb 2008
                        • 7142

                        #12
                        For that you are going to need to consult the person who wrote the script.

                        If you can't then I suggest that you use bbduk or trimmomatic or cutadapt (a standard trimming program).

                        Comment

                        • daanum
                          Member
                          • Nov 2015
                          • 24

                          #13
                          I will be using trimmomatic now,thanks for all the help.

                          Comment

                          Latest Articles

                          Collapse

                          • SEQadmin2
                            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                            by SEQadmin2



                            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                            ...
                            10-14-2026, 09:55 AM
                          • SEQadmin2
                            New Genomics Technologies Take Aim at Long-Standing Limits
                            by SEQadmin2


                            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                            ...
                            09-28-2026, 10:25 AM

                          ad_right_rmr

                          Collapse

                          News

                          Collapse

                          Topics Statistics Last Post
                          Started by SEQadmin2, Yesterday, 11:13 AM
                          0 responses
                          16 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, Yesterday, 10:48 AM
                          0 responses
                          15 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-15-2026, 10:52 AM
                          0 responses
                          35 views
                          0 reactions
                          Last Post SEQadmin2  
                          Started by SEQadmin2, 10-14-2026, 05:39 AM
                          0 responses
                          42 views
                          0 reactions
                          Last Post SEQadmin2  
                          Working...