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 message:"In split.default(seq_len(N), groups) : data length is not a multiple of split variable" #26

Closed
qicheng-ma opened this issue Jan 23, 2022 · 3 comments

Comments

@qicheng-ma
Copy link

Dear Symphony Team,
I got this error when I built my reference:
"Finding variable genes using vst method
Error in rowSDs_dgc(A@x, A@p, A@i, row_means, ncol(A), nrow(A), FALSE) :
no slot of name "x" for this object of class "Seurat"
Calls: ... vargenes_vst -> %>% -> lapply -> FUN -> rowVars -> rowSDs_dgc
In addition: Warning message:
In split.default(seq_len(N), groups) :
data length is not a multiple of split variable
Execution halted"

I appreciate if you could help me solve this issue.
Thanks in advance!

@qicheng-ma
Copy link
Author

If I used option 1, I got the similar error:

var_genes = vargenes_vst(ref_exp_full, groups = as.character(ref_metadata[['donor']]), topn = 2000)
Error in rowSDs_dgc(A@x, A@p, A@i, row_means, ncol(A), nrow(A), FALSE) :
trying to get slot "x" from an object of a basic class ("matrix") with no slots
Calls: vargenes_vst -> %>% -> lapply -> FUN -> rowVars -> rowSDs_dgc
In addition: Warning message:
In split.default(seq_len(N), groups) :
data length is not a multiple of split variable
Execution halted

@qicheng-ma
Copy link
Author

Solved

@GaoChris
Copy link

GaoChris commented Mar 1, 2023

could you please tell me how did you solve this problem ?

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