I annotated my data using:
genomation_annot<-genomation::annotateWithGeneParts(chip_clean.DB, gene.parts, intersect.chr = TRUE)
this creates a S4 class object.
from what I understood, the following functions should be able to work with this object.
plotGeneAnnotation(genomation_annot, cluster = TRUE) heatTargetAnnotation(genomation_annot, cluster = TRUE)
but insteadd I get the error message:
Error in as.list.default(X) : no method for coercing this S4 class to a vector
How can I fix this?
Thanks in advance, JS