Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • help calculating unique mapping rate for paired end

    Hi Everyone!

    I am writing down some stats for my RNAseq data.
    Briefly, I have used Tophat2+samtools+HTSeq count for mapping and gene counting (PE, GRCh37).

    When i check the samtools flagstat everything looks terrific...great mapping rates as well as pairing between reads.

    I was trying to get my unique mapping rates stats:
    I've been using the accepted_hits.bam file and run

    samtools view accepted_hits.bam | cut -f1 | sort | uniq | wc -l


    My naive question is:
    the number I get, is it considering the pair or the number of reads???

    Anyone has a better solution for counting unique mapping rate for PE?

    Thanks!

    Manu

  • #2
    If you're talking about unique with regards to mapping positions on both ends, how about marking duplicates using Picard's MarkDuplicates tool, then using samtools flagstat? You can subtract the duplicate reads from the mapped reads to get the number of non-duplicate mapped reads.

    Comment


    • #3
      I would strongly discourage you from marking duplicates in RNAseq data, as the alleged duplicates will primarily be false positives.

      Anyway, tophat2 will set the MAPQ to 0,1,2, or 50 (or something like that) depending on the number of best hits a read/pair has. If an alignment has a MAPQ of 50, then it maps uniquely (for some definitions of "uniquely mapping"). So just "samtools view -c -q 40 foo.bam" for the number of alignments. This counts both reads in a pair separately, so divide by 2 for an approximate number of read pairs ("approximate" in the case of singletons).

      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, 04-25-2024, 11:49 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-24-2024, 08:47 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      62 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      60 views
      0 likes
      Last Post seqadmin  
      Working...
      X