zhanghao-njmu / SCP

An end-to-end Single-Cell Pipeline designed to facilitate comprehensive analysis and exploration of single-cell data.
https://zhanghao-njmu.github.io/SCP/
GNU General Public License v3.0
382 stars 82 forks source link

adata_to_srt Error #138

Open BenjaminDEMAILLE opened 1 year ago

BenjaminDEMAILLE commented 1 year ago

Hi ! I did

library(SCP)
data("pancreas_sub")
print(pancreas_sub)
library(parallel)
SCP::PrepareEnv(python_version = 3.9)
pancreas_sub <- RunSCVELO(
  srt = pancreas_sub, group_by = "SubCellType",
  linear_reduction = "PCA", nonlinear_reduction = "UMAP", n_jobs = detectCores(), return_seurat = T
)

adata_to_srt(pancreas_sub)

and I got

Error in validObject(.Object) : 
  invalid class “dgCMatrix” object: 'Dim' slot does not have length 2
Capture d’écran 2023-07-19 à 15 17 58

Can you fix it's please ?

thanks a lot