number of .bam reads mapping to genes in gff format
2
0
Entering edit mode
9.5 years ago
Floydian_slip ▴ 170

Hi,

I have a gff file containing a gene set and I also have a .bam file with read mappings to the genome. How can I get the number of reads that map to each gene (which as Start/Stop codon, CDS, intron specified in the gff file).

Any help will be greatly appreciated.

Thanks,
-n

mapping bams gff • 3.3k views
ADD COMMENT
1
Entering edit mode
9.5 years ago

You can use featureCounts, htseq-count, or Rsamtools with GenomicFeatures in R (you'd need to use the findOverlaps() function). featureCounts and htseq-count are probably the easier options.

ADD COMMENT
0
Entering edit mode

+1 for featureCounts speed.

ADD REPLY
0
Entering edit mode
9.5 years ago
Bert Overduin ★ 3.7k

You can use the intersect sub-command of bedtools with the -c option.

ADD COMMENT

Login before adding your answer.

Traffic: 2366 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6