Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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

  • 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, Yesterday, 08:47 AM
0 responses
12 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-11-2024, 12:08 PM
0 responses
60 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-10-2024, 10:19 PM
0 responses
59 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-10-2024, 09:21 AM
0 responses
54 views
0 likes
Last Post seqadmin  
Working...
X