Entering edit mode
2.8 years ago
ta_awwad
▴
350
Hi everyone, I have a set of genes:
> genes
ENSMUSG00000000811
ENSMUSG00000000812
ENSMUSG00000000813
and a chip-seq bed
file.
chr8 70797397 70797576
chr8 70804936 70805149
chr8 70833619 70833922
chr8 73225728 73225908
I would like to find the number of peaks in each gene in genes. can anyone help? best
In R, you could import the mouse gencode annotation .GTF file (like this one for m39 genome) to get a
GRanges
of the genes:And then also import your ChIP-seq .BED file as a
GRanges
to finally usecountOverlaps
,findOverlaps
to see and count the overlaps between the two.thank you so much for your answer. I did it already. I thought there is a package that can do it for me. thanks once again