Announcement

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

  • How to count number of mapped paired-end and single-end rna-seq reads

    Does any one know know, how to count number of mapped paired-end and single-end rna-seq reads using BAM files.
    It seems samtools idx stats does not give exactly mapped reads information ? Any suggestion will be appreciated!

  • #2
    Try using samtools flagstat.

    Comment


    • #3
      that gives the no.of mapped loci but not mapped reads.

      Comment


      • #4
        It generates a summary of reads based on the SAM FLAG in column 2 of the BAM file:

        4255310402 + 0 in total (QC-passed reads + QC-failed reads)
        0 + 0 duplicates
        4252238423 + 0 mapped (99.93%:nan%)
        4255310402 + 0 paired in sequencing
        2102851470 + 0 read1
        2152458932 + 0 read2
        362406042 + 0 properly paired (8.52%:nan%)
        4217472878 + 0 with itself and mate mapped
        34765545 + 0 singletons (0.82%:nan%)
        3616654841 + 0 with mate mapped to a different chr
        3273787 + 0 with mate mapped to a different chr (mapQ>=5)

        Comment


        • #5
          99.93% mapping ? I think it is not referring 99.93% of your reads are mapped. 100% mapping is not possible or at least too good be true.

          Comment


          • #6
            Yes, 99.93% read mapping, although it doesn't include the quality of the mapping. You'll have to look that up in the BAM file independently.
            Last edited by rdeborja; 01-05-2013, 03:42 PM.

            Comment


            • #7
              If you look at any published studies (2010-12), you will typically see 80-90% but not ~100%. What thats tells ? Tophat always reports 100%. Something wrong isn't it ?

              Comment


              • #8
                Originally posted by repinementer View Post
                If you look at any published studies (2010-12), you will typically see 80-90% but not ~100%. What thats tells ? Tophat always reports 100%. Something wrong isn't it ?
                There's nothing wrong there. If I remember correctly Tophat produces bam files containing only the mapped reads (accepted_hits.bam). The unmapped reads are written to a separate file I think. That's the reason why the bam files have 100% mapped reads (in fact it shoud be 100% not ~99%).

                Dario

                Comment


                • #9
                  I find it helpful to use bam_stat.py from RSeQC or Picard's CollectAlignmentSummaryMetrics to get the number of reads that mapped one or more times (which you don't get from flagstat)

                  Comment

                  Latest Articles

                  Collapse

                  • seqadmin
                    Advanced Tools Transforming the Field of Cytogenomics
                    by seqadmin


                    At the intersection of cytogenetics and genomics lies the exciting field of cytogenomics. It focuses on studying chromosomes at a molecular scale, involving techniques that analyze either the whole genome or particular DNA sequences to examine variations in structure and behavior at the chromosomal or subchromosomal level. By integrating cytogenetic techniques with genomic analysis, researchers can effectively investigate chromosomal abnormalities related to diseases, particularly...
                    09-26-2023, 06:26 AM
                  • seqadmin
                    How RNA-Seq is Transforming Cancer Studies
                    by seqadmin



                    Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
                    09-07-2023, 11:15 PM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by seqadmin, Yesterday, 09:38 AM
                  0 responses
                  9 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 09-27-2023, 06:57 AM
                  0 responses
                  11 views
                  0 likes
                  Last Post seqadmin  
                  Started by seqadmin, 09-26-2023, 07:53 AM
                  1 response
                  23 views
                  0 likes
                  Last Post seed_phrase_metal_storage  
                  Started by seqadmin, 09-25-2023, 07:42 AM
                  0 responses
                  17 views
                  0 likes
                  Last Post seqadmin  
                  Working...
                  X