featureCounts -p -s 1 -a BJ_genes.gtf -g gene_id -t exon -T 8 --minReadOverlap 20 -Q 50 --donotsort -o BJ_R1.txt BJ_R1_name.sorted.bam
And for my regions of interest that are overlapping exons in the other strand I got fragments, even though in the bam file they are inexistent over the strand of my feature. If I change the -s parameter to 2 the number of fragments diminish, but still I got a number.
For example:
my feature of interest (with -s 1):
BJ_3ATLAS_0919 chr2 113260389 113261389 - 1001 69
gene that has an overlapping exon:
TTL chr2;chr2;chr2;chr2;chr2;chr2;chr2 113239743;113243494;113251720;113258783;113260489;113277859;113286258 113240078;113243572;113251952;113258918;113260758;113278002;113290222 +;+;+;+;+;+;+ 5163 3906
And if I check it with samtools, it makes sense with the bam file, but not with the featureCounts results:
505 Orion@mac:BJ$ samtools view -f 96 BJ_R1.bam "chr2:113260389-113261389" | wc -l
0
508 Orion@mac:BJ$ samtools view -f 64 BJ_R1.bam "chr2:113260389-113261389" | wc -l
191
Can you please point me if I am doing something incorrect or if I am missing something? Because I tried different things, like to check the bam file, the gtf coordinates, re-read the manual, but I can see it.
Thank you very much in advance.
Cheers,
Dulce
TTL chr2;chr2;chr2;chr2;chr2;chr2;chr2 113239743;113243494;113251720;113258783;113260489;113277859;113286258 113240078;113243572;113251952;113258918;113260758;113278002;113290222 +;+;+;+;+;+;+ 5163 3909
BJ_0919 chr2 113260389 113261389 - 1001 76
TTL chr2;chr2;chr2;chr2;chr2;chr2;chr2 113239743;113243494;113251720;113258783;113260489;113277859;113286258 113240078;113243572;113251952;113258918;113260758;113278002;113290222 +;+;+;+;+;+;+ 5163 4159
BJ_3ATLAS_0919 chr2 113260389 113261389 - 1001 6
TTL chr2;chr2;chr2;chr2;chr2;chr2;chr2 113239743;113243494;113251720;113258783;113260489;113277859;113286258 113240078;113243572;113251952;113258918;113260758;113278002;113290222 +;+;+;+;+;+;+ 5163 3946
BJ_0919 chr2 113260389 113261389 - 1001 78
TTL chr2;chr2;chr2;chr2;chr2;chr2;chr2 113239743;113243494;113251720;113258783;113260489;113277859;113286258 113240078;113243572;113251952;113258918;113260758;113278002;113290222 +;+;+;+;+;+;+ 5163 4067
BJ_0919 chr2 113260389 113261389 - 1001 17
Thank you very much!
Cheers,
Dulce