Originally posted by Kaas
View Post
Code:
# create a tab-delimited annotation file ("annot.txt")
GeneID Chr Start End Strand
1 NW_003614142.1 35303 35329 +
2 NW_003614142.1 35250 35302 +
3 NW_003614142.1 35329 35359 +
# count reads overlapping with each region
featureCounts -a annot.txt -i your_reads.bam -o counts.txt -F 'SAF' -b -f -O
Leave a comment: