Can anyone help me with this script error?
0
0
Entering edit mode
9 hours ago
nuorain ▴ 30

Hi, I tried to run this code but encounter the error.

gsva_matrix<- gsva(as.matrix(tcga_exp), gene_set,
                   method='ssgsea',kcdf='Gaussian',abs.ranking=TRUE)

Error in gsva(as.matrix(tcga_exp), gene_set, method = "ssgsea", kcdf = "Gaussian",  : 
  Calling gsva(expr=., gset.idx.list=., method=., ...) is defunct; use a method-specific parameter object (see '?gsva').

Can anyone help me out? Thank you very much. Best J

GSVA • 77 views
ADD COMMENT
0
Entering edit mode

Which version you are using? As per the documentation, the authors change the API, so you need different command; e.g:

gsvaParam(
exprData,
geneSets,
assay = NA_character_,
annotation = NULL,
minSize = 1,
maxSize = Inf,
kcdf = c("auto", "Gaussian", "Poisson", "none"),
kcdfNoneMinSampleSize = 200,
tau = 1,
maxDiff = TRUE,
absRanking = FALSE,
sparse = TRUE,
checkNA = c("auto", "yes", "no"),
use = c("everything", "all.obs", "na.rm")
)

Look into the documentation. https://www.bioconductor.org/packages/release/bioc/manuals/GSVA/man/GSVA.pdf

ADD REPLY

Login before adding your answer.

Traffic: 2125 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6