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
            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
          • seqadmin
            Strategies for Sequencing Challenging Samples
            by seqadmin


            Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
            03-22-2024, 06:39 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          18 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          22 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          17 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          49 views
          0 likes
          Last Post seqadmin  
          Working...
          X