find peaks over a set of genes
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
• 1,110 views
•
link
0 answers
No answers yet.
Log in to answer this question.
In R, you could import the mouse gencode annotation .GTF file (like this one for m39 genome) to get a
GRangesof the genes:And then also import your ChIP-seq .BED file as a
GRangesto finally usecountOverlaps,findOverlapsto 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