Firstly, I'm relatively new to R and methylation data.
I'd like to analyze this geo dataset (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE21232). It is performed with Human Methylation27 DNA BeadChip arrays. The data only provide beta-values (no A- and B-values). I know how to perform the analysis with lumi once I have a MethyLumiM object in R. But I'm not able to get there.
I followed this manual about GEOquery (https://bioconductor.org/packages/release/bioc/vignettes/GEOquery/inst/doc/GEOquery.html) and was able to create an ExpressionSet (without the annotation library). However, I do not know how to proceed.
Any help will be greatly appreciated. Thank you!
1 answer
Following my comment I tested this code that seems to work:
library(GEOquery)
x <- getGEO("GSE21232")[[1]]
x
ExpressionSet (storageMode: lockedEnvironment)
assayData: 27578 features, 16 samples
element names: exprs
protocolData: none
phenoData
sampleNames: GSM530883 GSM530884 ... GSM530898 (16 total)
varLabels: title geo_accession ... data_row_count (35 total)
varMetadata: labelDescription
featureData
featureNames: cg00000292 cg00002426 ... cg27665659 (27578 total)
fvarLabels: ID Name ... ORF (38 total)
fvarMetadata: Column Description labelDescription
experimentData: use 'experimentData(object)'
Annotation: GPL8490
library(methylumi)
y <- as(x, "MethyLumiM")
y
MethyLumiM (storageMode: lockedEnvironment)
assayData: 27578 features, 16 samples
element names: exprs
protocolData: none
phenoData
sampleNames: GSM530883 GSM530884 ... GSM530898 (16 total)
varLabels: title geo_accession ... data_row_count (35 total)
varMetadata: labelDescription
featureData
featureNames: cg00000292 cg00002426 ... cg27665659 (27578 total)
fvarLabels: ID Name ... ORF (38 total)
fvarMetadata: Column Description labelDescription
experimentData: use 'experimentData(object)'
Annotation: GPL8490
I am not familiar with this package and not sure whether this is all you need to work with it.
Log in to answer this question.
I can't check with an example at the moment but from the
methylumipackage documentation forMethyLumiM:This suggests various options to obtain the desired object. I would first try coercing with
as, which probably won't work. Another is to create a new object withnewas in the quoted text. You can give the objects in your ExpressionSet that match (like the matrix, phenoData) and try to provided the ones not included.