I have a list of regions identified as differentially methylated regions using bump hunter in minfi package with the format
chr start end ….
chr1
chr2
chr3
….
I want to identify genomic features of these positions (5' UTR, exon, gene body or 3' UTR)
I fought of using findOverlaps and converting txdb to GFF
I converted txdb to GFF
txdbGFF<-asGFF(txdb)
the information about type is gene,mRNA,exon,CDS
unique(txdbGFF$type)
[1] "gene" "mRNA" "exon" "CDS"
How can I get more detailed info. like 5' UTR, intergenic,..etc.
Thank you
You may want to look at the annotatePeak function in the ChIPseeker package that does this.
Vince