Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • dglemay
    Member
    • Feb 2011
    • 16

    multireads in BAM file?

    Hello,

    Given X total reads in a FASTQ file, when the reads are aligned (by TopHat), there are greater than X reads mapped in the BAM file (according to samtools flagstats). How can this be?

    In flagstats, is a single read counted more than once if it maps to more than one location?

    Thanks,
    Danielle
  • kopi-o
    Senior Member
    • Feb 2008
    • 319

    #2
    Yes. Flagstat shows the number of alignments, not the number of reads.

    Comment

    • dglemay
      Member
      • Feb 2011
      • 16

      #3
      Thank you, kopi-o!

      Any suggestion on how to determine the percentage of mapped and unmapped reads from a BAM file? (I am totally new to samtools)

      Thanks!

      Comment

      • kopi-o
        Senior Member
        • Feb 2008
        • 319

        #4
        I usually count the number of distinct reads in the bam file by looking at the first column (where the read ID is) and counting the number of unique names using something like

        samtools view out.bam | cut -f1 | sort | uniq -c

        There are probably more SAM-like ways.
        Last edited by kopi-o; 10-27-2011, 10:53 PM.

        Comment

        Latest Articles

        Collapse

        • mylaser
          Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
          by mylaser
          Kheloyaar: The Complete Guide to Kheloyaar Loginand Kheloyaar ID
          The online gaming industry has transformed the way people enjoy digital entertainment. As technology continues to improve, players are looking for platforms that offer convenience, security, and a seamless user experience. Kheloyaarhas gained attention among users who value an easy-to-use platform, quick account access, and a simple registration process.
          Whether you're exploring Kheloyaar for the first time or want to understand...
          Yesterday, 09:27 PM
        • 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.
          ...
          Yesterday, 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 10:04 AM
        0 responses
        8 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-08-2026, 10:08 AM
        0 responses
        7 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-07-2026, 11:05 AM
        0 responses
        10 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...