Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • AdamB
    Member
    • Apr 2010
    • 43

    'Properly paired' reads in sam flag from TopHat mapping

    I ran TopHat on a SOLiD paired-end dataset using the following command:
    Code:
    tophat --color --quals --library-type fr-secondstrand -r 125 -p 7 -o /home/me/data/raw_reads/bowtie_out/sample_secstrand -G /home/me/data/gtf_ref/Rattus_norvegicus.RGSC3.4.59.tophat.gtf rn4_c /home/me/data/raw_reads/for_bowtie/sample/sample_1.csfasta /home/me/data/raw_reads/for_bowtie/sample/sample_2.csfasta /home/me/data/raw_reads/for_bowtie/sample/sample_nh_1.qual /home/me/data/raw_reads/for_bowtie/sample/sample_nh_2.qual
    From flagstat I get:
    Code:
    samtools flagstat accepted_hits.bam 
    18837270 in total
    0 QC failure
    0 duplicates
    18837270 mapped (100.00%)
    18837270 paired in sequencing
    5917586 read1
    12919684 read2
    [b]4926 properly paired (0.03%)[/b]
    565148 with itself and mate mapped
    18272122 singletons (97.00%)
    0 with mate mapped to a different chr
    0 with mate mapped to a different chr (mapQ>=5)
    However when I view accepted_hits.bam in IGV browser many, if not most, reads are paired.

    What is the distinction between a paired read and a 'properly paired' read, as designated in the flag field, and why don't these match up for my reads? Will this affect any of my downstream analysis?

    (using Tophat 1.2.0, Bowtie 0.12.7)
    Last edited by AdamB; 01-26-2011, 04:10 AM.
  • Jon_Keats
    Senior Member
    • Mar 2010
    • 279

    #2
    How do you define the inner-mate-distance? I think the properly paired is based on the data you provide so (r- 125 with default STD of 20bp) if the inner mate distance is really 180bp with STD of 32 bp few of your reads will be called as "properly paired" as their true inner-mate-distance is outside of the mean/STD range you provided. I've been using a 5 million read subset against a transcriptome reference with BWA to get a data based range I feed into tophat.

    Comment

    • AdamB
      Member
      • Apr 2010
      • 43

      #3
      I have previously mapped the reads using Bioscope (ABI), and that gave me the mate pair distance stats. I just tried TopHat using 125±50 bp, which I thought more accurately reflected the spread, but the number of 'properly paired' reads is almost the same. From my Bioscope mapping stats, there are approximately 4 millions reads with a mate pair distance of 75-175 bp, yet only 5,602 (0.14%) are 'properly paired'. It seems there is a glaring error somewhere?
      Last edited by AdamB; 01-27-2011, 03:14 AM.

      Comment

      • AdamB
        Member
        • Apr 2010
        • 43

        #4
        Also if anyone has tips on how to extract a subset of matching F3 and F5 reads from .csfasta and .qual files, please let me know.

        Comment

        • AdamB
          Member
          • Apr 2010
          • 43

          #5
          If anyone has an answer to this question it would be much appreciated, thanks.

          Comment

          • AdamB
            Member
            • Apr 2010
            • 43

            #6
            An update:

            I realised there are not the same number of F3 reads as F5-BC reads:
            F3 = 23,077,379
            F5-BC = 26,929,508

            So, for a sample of 250,000 reads, I extracted those reads for which there was both F3 and F5-BC present, and mapped with TopHat.

            250,000 reads > samtools flagstat
            Code:
            186066 in total
            0 QC failure
            0 duplicates
            186066 mapped (100.00%)
            186066 paired in sequencing
            70366 read1
            115700 read2
            96 properly paired (0.05%)
            7190 with itself and mate mapped
            178876 singletons (96.14%)
            0 with mate mapped to a different chr
            0 with mate mapped to a different chr (mapQ>=5)
            230,999 reads (present in F3 and F5-BC) > samtools flagstat
            Code:
            212529 in total
            0 QC failure
            0 duplicates
            212529 mapped (100.00%)
            212529 paired in sequencing
            85982 read1
            126547 read2
            55096 properly paired (25.92%)
            69488 with itself and mate mapped
            143041 singletons (67.30%)
            0 with mate mapped to a different chr
            0 with mate mapped to a different chr (mapQ>=5)
            There are now 26% 'properly paired' reads, and more mapped reads.

            Comment

            • chenyao
              Member
              • Jul 2011
              • 74

              #7
              Originally posted by AdamB View Post
              An update:

              I realised there are not the same number of F3 reads as F5-BC reads:
              F3 = 23,077,379
              F5-BC = 26,929,508

              So, for a sample of 250,000 reads, I extracted those reads for which there was both F3 and F5-BC present, and mapped with TopHat.

              250,000 reads > samtools flagstat
              Code:
              186066 in total
              0 QC failure
              0 duplicates
              186066 mapped (100.00%)
              186066 paired in sequencing
              70366 read1
              115700 read2
              96 properly paired (0.05%)
              7190 with itself and mate mapped
              178876 singletons (96.14%)
              0 with mate mapped to a different chr
              0 with mate mapped to a different chr (mapQ>=5)
              230,999 reads (present in F3 and F5-BC) > samtools flagstat
              Code:
              212529 in total
              0 QC failure
              0 duplicates
              212529 mapped (100.00%)
              212529 paired in sequencing
              [COLOR="DarkOrange"]85982 read1
              126547 read2[/COLOR]
              55096 properly paired (25.92%)
              69488 with itself and mate mapped
              143041 singletons (67.30%)
              0 with mate mapped to a different chr
              0 with mate mapped to a different chr (mapQ>=5)
              There are now 26% 'properly paired' reads, and more mapped reads.
              Adam,Do you find the problem ,I have the same problem. Did you notice the number of read1 and read2 differ a lot?

              Comment

              • marcowanger
                Senior Member
                • Dec 2008
                • 273

                #8
                Just random thought,

                Is it transcriptome reads?

                How divergent is your genome reference to the sample you used for SOLiD?

                Is the ABI inner mate distance the externa or internall insert size? Top hat defines inser size as the inner part encompassed by 2 reads.
                Marco

                Comment

                • chenyao
                  Member
                  • Jul 2011
                  • 74

                  #9
                  Originally posted by marcowanger View Post
                  Just random thought,

                  Is it transcriptome reads?

                  How divergent is your genome reference to the sample you used for SOLiD?

                  Is the ABI inner mate distance the externa or internall insert size? Top hat defines inser size as the inner part encompassed by 2 reads.
                  The reference and my sample are all mouse.

                  the detail of my problem is here,

                  http://seqanswers.com/forums/showthread.php?t=13407,

                  Do you have any suggestion.

                  Comment

                  • tintin306
                    Junior Member
                    • Mar 2012
                    • 2

                    #10
                    you exp is strand specific rna-seq since you use --library-type?..

                    Comment

                    Latest Articles

                    Collapse

                    • 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
                    • GATTACAT
                      Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                      by GATTACAT
                      Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                      07-01-2026, 11:43 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 07-09-2026, 10:04 AM
                    0 responses
                    24 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-08-2026, 10:08 AM
                    0 responses
                    15 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-07-2026, 11:05 AM
                    0 responses
                    33 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-02-2026, 11:08 AM
                    0 responses
                    31 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...