Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can I pass on arguments to bowtie when I run tophat?

    Hi,

    I want to set the --seed argument for bowtie, but how can I fulfill this when I run tophat? Is there any solution? thanks!

  • #2
    Yes there is a solution. At least for Tophat2. Read the tophat manual. Look for the section that starts with "... TopHat 2 allows users to pass many of these options to Bowtie 2 by preceding the Bowtie 2 option name with ..."

    Comment


    • #3
      If you wanted to do something like that with tophat 1, you'd have to edit the tophat script. I think it was nice that they added the option in tophat2 to pass in bowtie parameters.

      Comment


      • #4
        Originally posted by westerman View Post
        Yes there is a solution. At least for Tophat2. Read the tophat manual. Look for the section that starts with "... TopHat 2 allows users to pass many of these options to Bowtie 2 by preceding the Bowtie 2 option name with ..."
        thanks! I am still work with bowtie 0.12.7 + tophat 1.3.2. Don't know whether tophat 2 can pass --b2-seed to bowtie 2 as --seed.

        Comment


        • #5
          Originally posted by westerman View Post
          Yes there is a solution. At least for Tophat2. Read the tophat manual. Look for the section that starts with "... TopHat 2 allows users to pass many of these options to Bowtie 2 by preceding the Bowtie 2 option name with ..."
          Originally posted by mgogol View Post
          If you wanted to do something like that with tophat 1, you'd have to edit the tophat script. I think it was nice that they added the option in tophat2 to pass in bowtie parameters.
          the random number makes the results not reproducible. You run twice with the same input, but results in different outcomes. This is not suitable for checking results or validating your results with others. That's why I need to set the random number seed.

          I edited the tophat script, to add '--seed' in 2 locations.

          1. def bowtie():


          Code:
                 bowtie_cmd = [bowtie_path]
                  # set seed here
                  bowtie_cmd += ["--seed 29"]
          
                  if reads_format == "fastq":
                      bowtie_cmd += ["-q"]
                  elif reads_format == "fasta":
                      bowtie_cmd += ["-f"]
          2. def build_juncs_bwt_index():

          Code:
              bowtie_build_cmd = [prog_path("bowtie-build")]
          
              # set seed
              bowtie_build_cmd += ["--seed 31"]
          
              if color:
                  bowtie_build_cmd += ["-C"]
          but the tophat run failed like this:


          [Wed May 16 09:30:47 2012] Reading known junctions from GTF file
          Left reads: min. length=75, count=11607291
          Right reads: min. length=75, count=11607291
          [Wed May 16 09:34:03 2012] Mapping left_kept_reads against genome with Bowtie

          gzip: stdout: Broken pipe
          [Wed May 16 09:34:03 2012] Processing bowtie hits
          [Wed May 16 09:35:15 2012] Mapping left_kept_reads_seg1 against genome with Bowtie (1/3)

          gzip: stdout: Broken pipe
          [Wed May 16 09:35:15 2012] Mapping left_kept_reads_seg2 against genome with Bowtie (2/3)

          gzip: stdout: Broken pipe
          [Wed May 16 09:35:15 2012] Mapping left_kept_reads_seg3 against genome with Bowtie (3/3)

          gzip: stdout: Broken pipe
          [Wed May 16 09:35:15 2012] Mapping right_kept_reads against genome with Bowtie

          ......

          Don't know why.

          In addition, I understand setting the seed in this way will lead to every call to bowtie with the same random number within the single tophat run. So I think manage the random number generator in tophat script is better, i.e., in a single tophat run, the multiple callings to bowtie will use a different random number every time.

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Essential Discoveries and Tools in Epitranscriptomics
            by seqadmin




            The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
            04-22-2024, 07:01 AM
          • seqadmin
            Current Approaches to Protein Sequencing
            by seqadmin


            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
            04-04-2024, 04:25 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Yesterday, 08:47 AM
          0 responses
          12 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          60 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          59 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          54 views
          0 likes
          Last Post seqadmin  
          Working...
          X