Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • colaneri
    Member
    • Jul 2012
    • 30

    tophat error with output directory

    I'm running tophat in a remote server and I having this error message (see below the command and the error)
    Can some one tell to me what could be going on?

    # LSBATCH: User input
    tophat -p 4 --min-intron-length 40 --max-intron-length 2000 --library-type fr-firststrand --no-novel-juncs -G /proj/seq/data/TAIR10_Ensembl/Annotation/Archives/archive-2013-03-06-09-54-25/Genes/genes.gtf -o/--output-dir tophat/Cnaa_rep1 /proj/seq/data/TAIR10_Ensembl/Sequence/Bowtie2Index/genome AGB_SPK_02-2-Cnaa-rep1_SpikeMix1_TAGCTT_L005_R1_001.fastq.gz, AGB_SPK_02-2-Cnaa-rep1_SpikeMix1_TAGCTT_L006_R1_001.fastq.gz
    ------------------------------------------------------------

    Exited with exit code 1.

    Resource usage summary:

    CPU time : 0.07 sec.
    Max Processes : 1
    Max Threads : 1

    The output (if any) follows:

    Traceback (most recent call last):
    File "/nas02/apps/tophat-2.0.13/bin/tophat", line 4088, in ?
    sys.exit(main())
    File "/nas02/apps/tophat-2.0.13/bin/tophat", line 3866, in main
    prepare_output_dir()
    File "/nas02/apps/tophat-2.0.13/bin/tophat", line 1242, in prepare_output_dir
    os.mkdir(output_dir)
    OSError: [Errno 13] Permission denied: '/--output-dir/'
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    Rather than "-o/--output-dir", you need to just use "-o".

    Comment

    • colaneri
      Member
      • Jul 2012
      • 30

      #3
      Things get weird

      Tx Brian, after change to -o
      now I getting this error message
      here I have less clue of what is going on

      # LSBATCH: User input
      tophat -p 4 --min-intron-length 40 --max-intron-length 2000 --library-type fr-firststrand --no-novel-juncs -G /proj/seq/data/TAIR10_Ensembl/Annotation/Archives/archive-2013-03-06-09-54-25/Genes/genes.gtf -o Cnaa_rep1 /proj/seq/data/TAIR10_Ensembl/Sequence/Bowtie2Index/genome AGB_SPK_02-2-Cnaa-rep1_SpikeMix1_TAGCTT_L005_R1_001.fastq, AGB_SPK_02-2-Cnaa-rep1_SpikeMix1_TAGCTT_L006_R1_001.fastq
      ------------------------------------------------------------

      Exited with exit code 1.

      Resource usage summary:

      CPU time : 0.25 sec.
      Max Processes : 1
      Max Threads : 1

      The output (if any) follows:


      [2014-11-08 12:47:39] Beginning TopHat run (v2.0.13)
      -----------------------------------------------
      [2014-11-08 12:47:39] Checking for Bowtie
      Bowtie version: 2.2.1.0
      [2014-11-08 12:47:41] Checking for Bowtie index files (genome)..
      [2014-11-08 12:47:41] Checking for reference FASTA file
      [2014-11-08 12:47:41] Generating SAM header for /proj/seq/data/TAIR10_Ensembl/Sequence/Bowtie2Index/genome
      Traceback (most recent call last):
      File "/nas02/apps/tophat-2.0.13/bin/tophat", line 4088, in ?
      sys.exit(main())
      File "/nas02/apps/tophat-2.0.13/bin/tophat", line 3942, in main
      params.read_params = check_reads_format(params, reads_list)
      File "/nas02/apps/tophat-2.0.13/bin/tophat", line 1837, in check_reads_format
      zf = ZReader(f_name, params)
      File "/nas02/apps/tophat-2.0.13/bin/tophat", line 1790, in __init__
      self.file=open(filename)
      IOError: [Errno 2] No such file or directory: ''

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        AGB_SPK_02-2-Cnaa-rep1_SpikeMix1_TAGCTT_L005_R1_001.fastq, AGB_SPK_02-2-Cnaa-rep1_SpikeMix1_TAGCTT_L006_R1_001.fastq
        That looks wrong. Are your reads paired? If so, you should be using R1 and R2, and there should NOT be a comma in between, just a space. You are trying to use reads from two different lanes. E.G. the correct input files might look like this:

        AGB_SPK_02-2-Cnaa-rep1_SpikeMix1_TAGCTT_L005_R1_001.fastq AGB_SPK_02-2-Cnaa-rep1_SpikeMix1_TAGCTT_L005_R2_001.fastq

        Comment

        • colaneri
          Member
          • Jul 2012
          • 30

          #5
          technical replicates

          Yes they are files from the same library that was sequenced in two different lines. I use the command because the tophat manual.

          Using TopHat

          Usage: tophat [options]* <genome_index_base> <reads1_1[,...,readsN_1]> [reads1_2,...readsN_2]

          I probably get it wrong, but it look to me from there that
          reads1_1 and reads N_1 are technical replicates or different fastq files originated from the same library.

          Comment

          • Brian Bushnell
            Super Moderator
            • Jan 2014
            • 2709

            #6
            You have both a comma and a space. Presumably, you need only one or the other.

            Comment

            • colaneri
              Member
              • Jul 2012
              • 30

              #7
              thanks!

              Originally posted by Brian Bushnell View Post
              You have both a comma and a space. Presumably, you need only one or the other.
              However your suggestion looks corrects since the job has not returned any error so far.
              How can I be sure that both files were used in the alignment?

              Comment

              • Brian Bushnell
                Super Moderator
                • Jan 2014
                • 2709

                #8
                The output file will have some reads marked as "read 1" and others marked as "read 2" in the sam bitflag; you can get statistics about pairing rates with samtools flagstat. I think Tophat will also display the pairing rate once it finishes.

                Comment

                • colaneri
                  Member
                  • Jul 2012
                  • 30

                  #9
                  not paired ends

                  But this is not paired end..
                  The two fastq are the same library sequenced in two different lines of the flow cell. It is possible to align together two files from the same library in this way?
                  sorry for all my confusion and thanks a lot for your help

                  Comment

                  • Brian Bushnell
                    Super Moderator
                    • Jan 2014
                    • 2709

                    #10
                    If the reads are single-ended, you should separate them with commas. If the reads are paired, you should separate them with spaces. You can always make things simpler by combining them first:

                    cat reads_A.fq reads_B.fq > combined.fq

                    ...then run things on the combined file.

                    Comment

                    • colaneri
                      Member
                      • Jul 2012
                      • 30

                      #11
                      back to the beggining

                      OK, you are right, the run ended and said that there were problems with pair end. But now I can back to do not understand the previously reported error:

                      # LSBATCH: User input
                      tophat -p 4 --min-intron-length 40 --max-intron-length 2000 --library-type fr-firststrand --no-novel-juncs -G /proj/seq/data/TAIR10_Ensembl/Annotation/Archives/archive-2013-03-06-09-54-25/Genes/genes.gtf -o Cnaa_rep1 /proj/seq/data/TAIR10_Ensembl/Sequence/Bowtie2Index/genome AGB_SPK_02-2-Cnaa-rep1_SpikeMix1_TAGCTT_L005_R1_001.fastq, AGB_SPK_02-2-Cnaa-rep1_SpikeMix1_TAGCTT_L006_R1_001.fastq
                      ------------------------------------------------------------

                      Exited with exit code 1.

                      Resource usage summary:

                      CPU time : 0.25 sec.
                      Max Processes : 1
                      Max Threads : 1

                      The output (if any) follows:


                      [2014-11-08 12:47:39] Beginning TopHat run (v2.0.13)
                      -----------------------------------------------
                      [2014-11-08 12:47:39] Checking for Bowtie
                      Bowtie version: 2.2.1.0
                      [2014-11-08 12:47:41] Checking for Bowtie index files (genome)..
                      [2014-11-08 12:47:41] Checking for reference FASTA file
                      [2014-11-08 12:47:41] Generating SAM header for /proj/seq/data/TAIR10_Ensembl/Sequence/Bowtie2Index/genome
                      Traceback (most recent call last):
                      File "/nas02/apps/tophat-2.0.13/bin/tophat", line 4088, in ?
                      sys.exit(main())
                      File "/nas02/apps/tophat-2.0.13/bin/tophat", line 3942, in main
                      params.read_params = check_reads_format(params, reads_list)
                      File "/nas02/apps/tophat-2.0.13/bin/tophat", line 1837, in check_reads_format
                      zf = ZReader(f_name, params)
                      File "/nas02/apps/tophat-2.0.13/bin/tophat", line 1790, in __init__
                      self.file=open(filename)
                      IOError: [Errno 2] No such file or directory: ''

                      Comment

                      • Brian Bushnell
                        Super Moderator
                        • Jan 2014
                        • 2709

                        #12
                        Like I said, the problem is here:

                        001.fastq, AGB_SPK

                        Remove the space.

                        Comment

                        • colaneri
                          Member
                          • Jul 2012
                          • 30

                          #13
                          Originally posted by Brian Bushnell View Post
                          Like I said, the problem is here:

                          001.fastq, AGB_SPK

                          Remove the space.
                          Brian, I really appreciate your help. I have all the aligments done! thanks a lot.

                          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...