-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gsva error #133
Comments
R version 4.2.2 Patched (2022-11-10 r83330) Matrix products: default locale: attached base packages: other attached packages: |
hi, this error is caused by a recent update in package dependency upstream from GSVA. To get this fixed, you should update to the current release of R (4.3.x) and Bioconductor (3.18 and GSVA 1.50.x). Let me know if you are unsure on how to do this. |
@rcastelo What about a solution for Linux? There is no greater release of R than 4.2.x afaik and therefore the GSVA does not work due to the same error reported in this issue. |
Hi @sunPi Linux is the main platform where R, and particularly GSVA, are developed. You can find the latest release of R 4.3.x for Linux, as well as Windows and macOS, in https://cran.r-project.org. If you want or need to install R in Linux in a different way, i.e., through some package manager system, then you should consult the maintainers of that package manager system about how to update R to 4.3.x, but certainly there is R 4.3.x for Linux. |
library(limma)
p <- 10 ## number of genes
n <- 30 ## number of samples
nGrp1 <- 15 ## number of samples in group 1
nGrp2 <- n - nGrp1 ## number of samples in group 2
consider three disjoint gene sets
geneSets <- list(set1=paste("g", 1:3, sep=""),
set2=paste("g", 4:6, sep=""),
set3=paste("g", 7:10, sep=""))
sample data from a normal distribution with mean 0 and st.dev. 1
y <- matrix(rnorm(n*p), nrow=p, ncol=n,
dimnames=list(paste("g", 1:p, sep="") , paste("s", 1:n, sep="")))
genes in set1 are expressed at higher levels in the last 'nGrp1+1' to 'n' samples
y[geneSets$set1, (nGrp1+1):n] <- y[geneSets$set1, (nGrp1+1):n] + 2
build design matrix
design <- cbind(sampleGroup1=1, sampleGroup2vs1=c(rep(0, nGrp1), rep(1, nGrp2)))
fit linear model
fit <- lmFit(y, design)
estimate moderated t-statistics
fit <- eBayes(fit)
genes in set1 are differentially expressed
topTable(fit, coef="sampleGroup2vs1")
estimate GSVA enrichment scores for the three sets
gsva_es <- gsva(y, geneSets, mx.diff=1)
Error: useNames = NA is defunct. Instead, specify either useNames = TRUE or useNames = FALSE.
The text was updated successfully, but these errors were encountered: