Enter the body of text here
Code should be placed in three backticks as shown below
library(genomation)
library(methylKit)
setwd("/home/user/R/x86_64-pc-linux-gnu-library/4.0/genomation/extdata")
gff.file=system.file("extdata/Bubalus_bubalis.gtf", package = "genomation")
gff = gffToGRanges(gff.file)
head(gff)
Anno <- GRangesList(gff)
setwd("~/Desktop/Final_sort")
diffAnnhyper3=annotateWithGeneParts(as(myDiff25p.hyper,"Granges"),Anno)
> diffAnnhyper3=annotateWithGeneParts(as(myDiff25p.hyper,"Granges"),Anno)
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'target' in selecting a method for function 'annotateWithGeneParts': no method or default for coercing “methylDiff” to “Granges”
> diffAnnhyper3=annotateWithGeneParts(as(myDiff25p.hyper,"GRanges"),Anno)
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘countOverlaps’ for signature ‘"GRanges", "NULL"’
PLEASE help in resolving this error