Closed LiNk-NY closed 5 years ago
From the help files for getAnnotation():
getAnnotation(object, what = "everything", lociNames = NULL,
orderByLocation = FALSE, dropNonMapping = FALSE)
object - A minfi object.
In this case a minfi object refers to one of the following - RGChannelSet, MethylSet, GenomicMethylSet and so on. So you're feeding the function the wrong thing. You can simply obtain the manifest using the IlluminaHumanMethylation450kanno.ilmn12.hg19
package but you wouldn't use the minfi::getAnnotation()
. The benefit of using the minfi::getAnnotation()
version is you can use it to only obtain the manifest info for your loci of interest.
The easiest way to get the full 450k annotation with this function is to simply invoke:
myAnno.df <- getAnnotation(minfiData::MsetEx)
Hi @wudustan
Thanks for clearing this up. I looks like I was only looking for the
Locations
data from the
IlluminaHumanMethylation450kanno.ilmn12.hg19
package.
I've updated TCGAutils
to reflect that.
FWIW This is where I found this type of usage: https://www.bioconductor.org/packages/release/workflows/vignettes/methylationArrayAnalysis/inst/doc/methylationArrayAnalysis.html#loading-the-data It may be helpful to submit an issue / bug report for the workflow.
Best, Marcel
I want to run
getAnnotation
inside package code.Essentially the
IlluminaHumanMethylation450kanno.ilmn12.hg19
package is required to be loaded when runninggetAnnotation
. This shouldn't be a requirement inside package code (it works fine with interactive use, i.e.,library(...)
).I'm running the following and getting a
traceback()
(below) that looks like this:Created on 2019-03-14 by the reprex package (v0.2.1)