Dear guys,
after a long job I got my limmaRes as result of limmaDE analysis, as you can see from the next:
str(limmaRes) Formal class 'limmaResults' [package "beadarray"] with 11 slots ..@ DesignMatrix : num [1:16, 1:2] 0 0 0 0 0 0 1 1 1 1 ... .. ..- attr(*, "dimnames")=List of 2 .. .. ..$ : chr [1:16] "1" "2" "3" "4" ... .. .. ..$ : chr [1:2] "cancer" "normal" .. ..- attr(*, "assign")= int [1:2] 1 1 .. ..- attr(*, "contrasts")=List of 1 .. .. ..$ as.factor(SampleGroup): chr "contr.treatment" ..@ ArrayWeights : Named num [1:16] 1.82 2.9 1.97 2.15 2.01 ... .. ..- attr(*, "names")= chr [1:16] "1" "2" "3" "4" ... ..@ ContrastMatrix : num [1:2, 1] 1 -1 .. ..- attr(*, "dimnames")=List of 2 .. .. ..$ Levels : chr [1:2] "cancer" "normal" .. .. ..$ Contrasts: chr "cancer-normal" ..@ annotation : chr "Humanv3"
etc etc etc ...
Because most of tools to conduct the next steps require an expression set (GeneAnswers, GOsummaries, etc), I wish to convert the limmaResults to ExpressionSet, and it could be possible (as you can read):
showMethods("coerce")
from="eSet", to="ExpressionSet"
from="eSet", to="MultiSet"
.....
from="limmaResults", to="eSet" from="limmaResults", to="GRanges" from="limmaResults", to="Versioned"
.........
But something is not working:
> eset <- as(limmaRes, "eSet") > dim(eset) Features Contrasts 34362 1 > as(eset, "ExpressionSet") Error in updateOldESet(from, "ExpressionSet") : no slot of name "pData" for this object of class "AnnotatedDataFrame"
> sessionInfo() R version 3.3.2 (2016-10-31) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 14.04.4 LTS locale:
[1] LCCTYPE=enUS.UTF-8 LCNUMERIC=C LCTIME=enUS.UTF-8 LCCOLLATE=enUS.UTF-8 attached base packages: [1] stats4 parallel stats graphics grDevices utils datasets methods base other attached packages:
[1] beadarray2.24.0 ggplot22.2.0 illuminaHumanv3.db1.26.0 org.Hs.eg.db3.4.0 AnnotationDbi1.36.0 loaded via a namespace (and not attached):
[1] Rcpp0.12.8 plyr1.8.4 GenomeInfoDb1.10.1 XVector0.14.0 bitops1.0-6 tools3.3.2
|