Unconfigured Ad

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

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