Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • #31
    How to use?

    Originally posted by offspring View Post
    Short update: the script posted earlier in this thread has seen some updates (Python 3 compatibility, better argument handling etc) and is now called tophat_recondition.

    It can be found here: https://github.com/cbrueffer/tophat-recondition
    Does this program need to be installed in the same directory as the unmapped bams that need to be reconditioned? I can't seem to get the program to work. I have python and pysam installed, but the program doesn't run.

    wget https://github.com/cbrueffer/tophat-...ive/master.zip
    unzip master
    set PATH to /home/user/tophat_recondition/tophat-recondition-master
    set PATH to /cluster/software/python2.7.6/bin
    #Try tophat-recondition
    tophat-recondition.py -hv /home/scratch/user/Flowcell1/Raw_PE/sampleID/sampleBAM /home/scratch/user/Flowcell1/Raw_PE/sampleID/

    Comment


    • #32
      Originally posted by bpb9 View Post
      Does this program need to be installed in the same directory as the unmapped bams that need to be reconditioned? I can't seem to get the program to work. I have python and pysam installed, but the program doesn't run.

      wget https://github.com/cbrueffer/tophat-...ive/master.zip
      unzip master
      set PATH to /home/user/tophat_recondition/tophat-recondition-master
      set PATH to /cluster/software/python2.7.6/bin
      #Try tophat-recondition
      tophat-recondition.py -hv /home/scratch/user/Flowcell1/Raw_PE/sampleID/sampleBAM /home/scratch/user/Flowcell1/Raw_PE/sampleID/
      Try without -hv, those are optional parameters that will terminate the program (i.e., -h print help and exit, -v print version and exit).
      The script can be run from whereever you like, as long as python and pysam can be found.

      Comment


      • #33
        So it got it to run if I stayed in the same directory as tophat-recondition.py and removed -hv command, and pointed it to the tophat output directories. I think the reason why is because on the cluster, HTseq is installed under one version of python, and pysam under another. If I use the version of python in my local directory, it runs. It produced an output file unmapped_fixup.bam. However when I run samtools flagstat on the unmapped.bam and the unmapped_fixup.bam, the flagstat summaries are the same…

        samtools flagstat unmapped_fixup.bam
        8903498 + 2048970 in total (QC-passed reads + QC-failed reads)
        0 + 0 duplicates
        0 + 0 mapped (0.00%:0.00%)
        8903498 + 2048970 paired in sequencing
        4380074 + 1096160 read1
        4523424 + 952810 read2
        0 + 0 properly paired (0.00%:0.00%)
        0 + 0 with itself and mate mapped
        0 + 0 singletons (0.00%:0.00%)
        0 + 0 with mate mapped to a different chr
        0 + 0 with mate mapped to a different chr (mapQ>=5)



        samtools flagstat unmapped.bam
        8903498 + 2048970 in total (QC-passed reads + QC-failed reads)
        0 + 0 duplicates
        0 + 0 mapped (0.00%:0.00%)
        8903498 + 2048970 paired in sequencing
        4380074 + 1096160 read1
        4523424 + 952810 read2
        0 + 0 properly paired (0.00%:0.00%)
        0 + 0 with itself and mate mapped
        0 + 0 singletons (0.00%:0.00%)
        0 + 0 with mate mapped to a different chr
        0 + 0 with mate mapped to a different chr (mapQ>=5)


        somehow I just can't believe that none of the unmapped reads are duplicates…could this be a consequence of me running tophat with the --no-mix option turned on?
        Last edited by bpb9; 11-25-2014, 11:07 PM. Reason: correction

        Comment


        • #34
          Sounds like it might have an effect, I don't have experience with that option myself. To see the effect of the script itself, try running the following command on unmapped.bam and unmapped_fixup.bam:

          Code:
          samtools view -f 0x8 unmapped.bam
          On the original file it should not print anything, but on the fixed file you should get output.

          Comment


          • #35
            You are correct, there is indeed output for unmapped_fixup.bam but not unmapped.bam.

            I still think it's really weird that there are no duplicates in the unmapped file, but that must be a separate issue.

            Comment


            • #36
              Yes, this is seperate indeed. The point of tophat-recondition is to fix issues that prevent unmapped.bam from being used by downstream tools (i.e., to make it possible to merge accepted_hits.bam and unmapped.bam, and feed the merged file to a QC software).

              Comment


              • #37
                I've just release version 0.3 of tophat-recondition (https://github.com/cbrueffer/tophat-recondition), and it may fix the "Mapped mate should have mate reference name" problem id0 was seeing.

                The details are in TopHat bug #16, https://github.com/infphilo/tophat/issues/16 and tophat-recondition bug #1 https://github.com/cbrueffer/tophat-...ition/issues/1.

                Comment

                Latest Articles

                Collapse

                • 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
                • seqadmin
                  Techniques and Challenges in Conservation Genomics
                  by seqadmin



                  The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

                  Avian Conservation
                  Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
                  03-08-2024, 10:41 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by seqadmin, 03-27-2024, 06:37 PM
                0 responses
                16 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 03-27-2024, 06:07 PM
                0 responses
                13 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 03-22-2024, 10:03 AM
                0 responses
                56 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 03-21-2024, 07:32 AM
                0 responses
                70 views
                0 likes
                Last Post seqadmin  
                Working...
                X