-
Notifications
You must be signed in to change notification settings - Fork 915
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
SCTransform error #8185
Comments
Hi @jessicaliu09 I cannot replicate this with our test datasets, but if you can email me your object on schoudhary@nygenome.org, I can take a look. |
Thanks for sharing the object. I have pushed a fix here 64a6495 remotes::install_github("sataijalab/seurat", ref="develop") For your question about small clusters, you could try restricting the residual range to something smaller |
Hi,
I ran the following code
obj[["RNA"]] <- split(obj[["RNA"]], f = obj$batch)
obj <- SCTransform(obj, variable.features.n = 3000, vars.to.regress = c('percent.mt','nCount_RNA'))
It worked for some batches, but then stopped at this batch with error:
Getting residuals for block 1(of 2) for Batch12 dataset
Getting residuals for block 2(of 2) for Batch12 dataset
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'as.matrix': incorrect number of dimensions
Calls: SCTransform ... get_residuals -> as.matrix -> .handleSimpleError -> h
Execution halted
This batch seems to have enough cells as other batches
table(obj$batch)
Batch Number of Cells
B4 3905
B5 4734
B6 1864
B7 4727
B8 3900
B9 3478
B10 5131
B11 4342
B12 5001
B13 4656
B14 4871
B15 4863
B16 5213
B17 2254
B18 5052
B19 6357
B20 4391
B21 5425
B22 5849
packageVersion('SeuratObject')
[1] ‘5.0.1’
packageVersion('Seurat')
[1] ‘5.0.1’
Do you know the causes?
Thanks.
The text was updated successfully, but these errors were encountered: