1) > sva1 = sva(dds,mod,mod0,n.sv=2)
Number of significant surrogate variables is: 2
Error in dat %% (Id - mod %% solve(t(mod) %% mod) %% t(mod)) : requires numeric/complex matrix/vector arguments
2)> batchQC(as.data.frame(dds),batch=batch, condition=condition,view_report=FALSE,interactive=FLASE)
Error in as.vector(x) : no method for coercing this S4 class to a vector
Hi
Currently, I am trying to remove known batch effect using sva and BatchQC on express data: dds from DESeq2, suggested by Dr Jeffrey T. Leek (http://jtleek.com/genstats/inst/doc/02_13_batch-effects.html)
got two following error messages:
1) > sva1 = sva(dds,mod,mod0,n.sv=2) Number of significant surrogate variables is: 2 Error in dat %% (Id - mod %% solve(t(mod) %% mod) %% t(mod)) : requires numeric/complex matrix/vector arguments 2)> batchQC(as.data.frame(dds),batch=batch, condition=condition,view_report=FALSE,interactive=FLASE) Error in as.vector(x) : no method for coercing this S4 class to a vector
Thanks a lot
Chen
Below is information for ref.
locale: [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages: [1] parallel stats4 stats graphics grDevices utils datasets methods base
other attached packages: [1] limma_3.30.2 reshape2_1.4.2 d3heatmap_0.6.1.1 ggvis_0.4.3
[5] pander_0.6.0 shiny_0.14.1 bladderbatch_1.12.0 BatchQC_1.2.0
[9] sva_3.22.0 genefilter_1.56.0 mgcv_1.8-15 nlme_3.1-128