Dear all,
I am trying to utilise the --quantMode GeneCounts flag in the STAR version 2.5.1b and indeed I got ReadsPerGene.out.tab file with similar counts compared to the result of another package (featureCounts from Rsubread, for example). However, I got less number of genes in my ReadsPerGene.out.tab output (around 600 less).
I supplied the gtf file in the index generation of STAR and compared to the exact same gtf file coupled with the BAM file generated by the same STAR run in other packages (which yielded the same number of genes as if I extract "gene" lines from the gtf file). My reads are paired-ended.
This was my command:
STAR --genomeDir star_genome --runThreadN 16 --genomeLoad NoSharedMemory --outSAMtype BAM SortedByCoordinate --readFilesIn /proj/R1.fastq.gz /proj/R2.fastq.gz --outSAMunmapped Within --outSAMattributes NH HI AS NM MD --outSAMstrandField intronMotif --readFilesCommand zcat --outWigStrand Stranded --outWigType bedGraph --quantMode GeneCounts
Anything I am missing here?
Many thanks in advance!
Cheers,
Kadir