Error in out[[t]]$coefs : $ operator is invalid for atomic vectors
Li-Rui091 opened this issue · 1 comments
I have a problem when using the software:
- Running CIBERSORT ... Error in out[[t]]$coefs : $ operator is invalid for atomic vectors
In addition: Warning message:
In parallel::mclapply(1:svn_itor, res, mc.cores = svn_itor) :
all scheduled cores encountered errors in user code。
I tried to figure it out, and I find that the model generated in CIBERSORT.R is empty.The function is as follows:
res <- function(i){
if(i==1){nus <- 0.25}
if(i==2){nus <- 0.5}
if(i==3){nus <- 0.75}
model<-e1071::svm(X,y,type="nu-regression",kernel="linear",nu=nus,scale=F)
model
}
Error in predict.svm(ret, xhold, decision.values = TRUE) :
Model is empty!
As there are two ariables:X, y, and I found that y is a vector of length 133 and all values are 0。Can you give me any advice to solve it?
Hi, this repository is for Bisque so I do not have much insight on CIBERSORT's code. As a simple guess, y
may be the bulk expression for a sample and all the genes being used have zero expression in a sample.