Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • apple_pie
    Junior Member
    • Aug 2015
    • 1

    #1

    flagstat/ht-seq discrepancy

    Hello,
    I am trying to understand a discrepancy between alignment numbers reported by flagstat and ht-seq. I have a BAM file from tophat2 which I filtered (in Galaxy) to get uniquely mapped (MAPQ>=50) and properly paired reads (isProperPair:true). Running flagstat on the filtered file gives me:

    14783250 + 0 in total (QC-passed reads + QC-failed reads)
    0 + 0 secondary
    0 + 0 supplementary
    0 + 0 duplicates
    14783250 + 0 mapped (100.00%:-nan%)
    14783250 + 0 paired in sequencing
    7391625 + 0 read1
    7391625 + 0 read2
    14783250 + 0 properly paired (100.00%:-nan%)
    14783250 + 0 with itself and mate mapped
    0 + 0 singletons (0.00%:-nan%)
    0 + 0 with mate mapped to a different chr
    0 + 0 with mate mapped to a different chr (mapQ>=5)

    I then count features with ht-seq using the following:

    htseq-count --format=bam --order=pos --stranded=no --mode=union filtered file.bam annotation.gtf>myfile.counts

    which works fine. The thing I don't understand is that I get this warning:

    Warning: Mate records missing for 42366 records

    and the total number of SAM alignment pairs processed is reported as 7412808. I notice that 7412808= 7391625 + (42366/2)

    It would make sense to me that these are records whose mates were multiply mapped and therefore filtered out, leaving them without their pair, but I can't understand why they are not showing up in the flagstat output.

    I'd be really grateful if anybody can shed some light on this!

Latest Articles

Collapse

  • SEQadmin2
    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
    by SEQadmin2



    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
    ...
    10-14-2026, 09:55 AM
  • SEQadmin2
    New Genomics Technologies Take Aim at Long-Standing Limits
    by SEQadmin2


    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
    ...
    09-28-2026, 10:25 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, Yesterday, 11:13 AM
0 responses
17 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, Yesterday, 10:48 AM
0 responses
18 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
36 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
42 views
0 reactions
Last Post SEQadmin2  
Working...