Hi Wei,
thank you for your response.
I use STAR to generate BAM files sorted by coordinates:
STAR --genomeDir /opt/ngs_indexes/star/mm10.primary_assembly.gencode.vM6_refchrom.50bp --runThreadN 4 --genomeLoad LoadAndKeep --readFilesIn R1.fastq R2.fastq --outSAMunmapped Within --outSAMtype BAM SortedByCoordinate --limitBAMsortRAM 17179869184 --outFilterType BySJout --outFilterMultimapNmax 20 --alignSJoverhangMin 8 --alignSJDBoverhangMin 1 --outFilterMismatchNmax 999 --outFilterMismatchNoverLmax 0.04 --alignIntronMin 20 --alignIntronMax 1000000 --alignMatesGapMax 1000000 --seedSearchStartLmax 30
which are then filtered:
samtools view -F 2828 -f 2 -q 30 -@ 4 -b mappings.bam >filtered_mappings.bam
Typically, filter_mappings.bam is then fed to featureCounts:
featureCounts -T 12 -s 2 -p -B -C -P -d 40 -D 4000 -t exon -g gene_id -a /opt/ngs_indexes/models/mm/mm10/gencode.vM6.refchrom.annotation.gtf -o counts.txt *.bam
This pipeline resulted in re-sorting from previous versions of featureCounts with 80-95% of features assigned, whereas now there is no automatic re-sorting and only 0.1% of features gets assigned.
Thank you,
Roberto