I have a problem in regards to making a variance plot from our data. I tried to use a code snippet from here (Effects of transformations on the variance): https://bioconductor.org/packages/release/bioc/vignettes/DESeq2/inst/doc/DESeq2.html
when trying the code snippet;
# this gives log2(n + 1)
ntd <- normTransform(dds)
library("vsn")
notAllZero <- (rowSums(counts(dds))>0)
meanSdPlot(assay(ntd)[notAllZero,])
The counts function returns the error;
Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘counts’ for signature ‘"DESeqTransform"’
This is my sessioninfo and traceback;
> sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_Netherlands.1252 LC_CTYPE=English_Netherlands.1252 LC_MONETARY=English_Netherlands.1252 LC_NUMERIC=C
[5] LC_TIME=English_Netherlands.1252
attached base packages:
[1] parallel stats4 stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocInstaller_1.26.1 vsn_3.44.0 DESeq2_1.16.1 SummarizedExperiment_1.6.5 DelayedArray_0.2.7
[6] matrixStats_0.52.2 Biobase_2.36.2 GenomicRanges_1.28.6 GenomeInfoDb_1.12.3 IRanges_2.10.5
[11] S4Vectors_0.14.7 BiocGenerics_0.22.1 RColorBrewer_1.1-2
loaded via a namespace (and not attached):
Error in x[["Version"]] : subscript out of bounds
In addition: Warning message:
In FUN(X[[i]], ...) :
DESCRIPTION file of package 'backports' is missing or broken
> traceback()
7: FUN(X[[i]], ...)
6: lapply(X = X, FUN = FUN, ...)
5: sapply(L[[n]], function(x) x[["Version"]])
4: mkLabel(x, "loadedOnly")
3: print(mkLabel(x, "loadedOnly"), quote = FALSE, ...)
2: print.sessionInfo(x)
1: function (x, ...)
UseMethod("print")(x)
I have no idea what I'm doing wrong.
Thanks in advance for anyone replying to this!
I already tried validating my install with
biocValid()
, my session is valid.