Skip to content
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

Error in out[[t]]$coefs : $ operator is invalid for atomic vectors #35

Closed
Li-Rui091 opened this issue Dec 29, 2022 · 1 comment
Closed

Comments

@Li-Rui091
Copy link

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?

@brandonjew
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants