Junction counting and filter out low mapping quality reads

46 views
Skip to first unread message

Мария Романова

unread,
Oct 7, 2020, 11:39:23 AM10/7/20
to Subread
Hello. I am interested in using featureCounts as a tool for detecting abnormal splicing events in my RNA-seq data. I have a sample with a known mutation which lead to exon skipping and I would have liked to count how many reads span this junction. I am trying now to decrease the number of artifacts i.e junctions that are supported by reads with low mapping quality. For that purpose, I add -Q flag to the command, but I get not what I expected.

My command is:

featureCounts -J -Q 255 -G GRCh38.primary_assembly.genome.fa -a gencode.v32.primary_assembly.annotation.gtf sample.sam -o sample_fc

A one line example from output sample_fc.jcount:
PrimaryGene     SecondaryGenes  Site1_chr       Site1_location  Site1_strand    Site2_chr       Site2_location  Site2_strand    sample.sam
ENSG00000108821.13      NA      chr17   50185429        +       chr17   50186473        +       3308
ENSG00000108821.13      NA      chr17   50185429        NA      chr17   50194770        NA      1
ENSG00000108821.13      NA      chr17   50185429        +       chr17   50298247        +       1
ENSG00000108821.13      NA      chr17   50185429        +       chr17   50399843        +       1
ENSG00000108821.13      NA      chr17   50185429        +       chr17   50425454        +       1
The same command whithout -Q flag outputs the same result.

But when I use samtools view before this with -q 255 flag I got this:

PrimaryGene     SecondaryGenes  Site1_chr       Site1_location  Site1_strand    Site2_chr       Site2_location  Site2_strand    sample.sam
ENSG00000108821.13      NA      chr17   50185429        +       chr17   50186473        +       4

It is obvious that reads are not filtered out for junction counting with featureCounts, thus I wonder if it is not supposed to or I did something incorrectly.

Thank you in advance for your response. A subsample of my sample is in the attachment in case needed

Yang LIAO

unread,
Oct 20, 2020, 4:16:21 PM10/20/20
to Subread
When counting junctions, featureCounts doesn't apply filters on reads. It uses all mapped reads in the input SAM or BAM files as long as they contain junction(s). 

You may need to filter the reads using samtools and run featureCounts on the results.

Cheers,
Yang

Wei Shi

unread,
Oct 29, 2020, 6:42:35 PM10/29/20
to Subread
We will also try to support read filtering for junction counting in featureCounts.

Мария Романова

unread,
Oct 30, 2020, 6:37:34 AM10/30/20
to Subread
I understand. Thank you very much for your response.

пятница, 30 октября 2020 г. в 01:42:35 UTC+3, shiw...@gmail.com:
Reply all
Reply to author
Forward
0 new messages