How to get the all the overlap information of a peak in ChIPseeker
1
0
Entering edit mode
6.4 years ago
afli ▴ 190

Hi guys, I think there must be all the annotation information of one peak in ChIPseeker analysis, for example, a peak could overlap with an exon or an intron. But when I look into the annotation file using as.GRanges method, I could only see one feature corresponding to one peak. I use this command line:

anno<-as.data.frame(as.GRanges(peakAnno))

write.table(anno,"anno.txt",sep="\t",quote=F)

Maybe there is other files that storing all the information? How to get this? Thanks!

ChIPseeker detail information of peak • 3.0k views
ADD COMMENT
0
Entering edit mode

overlap-of-peaks-and-annotated-genes section given in ChIPseeker manual may help you.

ADD REPLY
0
Entering edit mode

Thank you my friend, and I found another answer below.

ADD REPLY
1
Entering edit mode
6.4 years ago
Guangchuang Yu ★ 2.6k

peakAnno@detailGenomicAnnotation

ADD COMMENT
0
Entering edit mode

Thank you I got it!

features = attributes(peakAnno)

head(features['detailGenomicAnnotation'][[1]])

the link is: https://github.com/GuangchuangYu/ChIPseeker/issues/43

ADD REPLY

Login before adding your answer.

Traffic: 2190 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