Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Dolev Rahat
    Junior Member
    • Mar 2014
    • 2

    Incosistent number of paired end reads (BAM file generated by STAR using RSEM)

    I have used RSEM to quantify paired-end RNA-Seq data. The alignment was done
    using STAR which was called internally by RSEM, using a reference prepared using the rsem-prepare-reference script, with a GTF that I generated by downloading the GRCh38.90 gtf from Ensembl and then excluding from the GTF transcripts that are not relevant for my downstream analysis.

    I then run samtools flagstat on the genome BAM file:

    HTML Code:
    samtools flagstat SRR627536.genome.sorted.bam
    41323930 + 0 in total (QC-passed reads + QC-failed reads)
    18115150 + 0 secondary
    0 + 0 supplementary
    0 + 0 duplicates
    39343574 + 0 mapped (95.21% : N/A)
    23208780 + 0 paired in sequencing
    11604390 + 0 read1
    11604390 + 0 read2
    21228424 + 0 properly paired (91.47% : N/A)
    21228424 + 0 with itself and mate mapped
    0 + 0 singletons (0.00% : N/A)
    0 + 0 with mate mapped to a different chr
    0 + 0 with mate mapped to a different chr (mapQ>=5)

    The number of mapped reads is greater then the number of paired reads. So
    if I understand correctly, I should expect that have reads for which neither the 0x1 nor the 0x4 bit are set.
    However when I run:
    HTML Code:
    samtools view -F 1 SRR627536.genome.sorted.bam
    I get a BAM file with 0 rows.

    How can this discrepancy be explained? Does STAR/RSEM interpret SAM flags in a way that is different from samtools in some way?

    Thanks in advance

Latest Articles

Collapse

  • GATTACAT
    Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
    by GATTACAT
    Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
    07-01-2026, 11:43 AM
  • SEQadmin2
    Nine Things a Sample Prep Scientist Thinks About Before Sequencing
    by SEQadmin2


    I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

    Here are nine questions we think about, in roughly the order they matter, before...
    06-18-2026, 07:11 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 07-02-2026, 11:08 AM
0 responses
22 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-30-2026, 05:37 AM
0 responses
23 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-26-2026, 11:10 AM
0 responses
22 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 06-17-2026, 06:09 AM
0 responses
55 views
0 reactions
Last Post SEQadmin2  
Working...