Displaying 1 result from an estimated 1 matches for "annogr2df".
2011 Apr 15
3
DESCRIPTION file and Rd examples
...lines are
require(GenomicRanges)
annoDF <- as.data.frame(anno) # anno is the GRanges object.
and that second line gives:
Error in as.data.frame.default(anno) :
cannot coerce class 'structure("GRanges", package = "GenomicRanges")' into a data.frame
Calls: annoGR2DF ... annoGR2DF -> .local -> as.data.frame -> as.data.frame.default
I have GenomicRanges listed in my Imports: field, and IRanges in the Suggests: of the DESCRIPTION file (it's require()d elsewhere). I'm trying to avoid putting packages in Depends: , so my package loads fast. Any ti...