RausellLab / CelliD

Gene signature extraction and cell-identity recognition at individual cell level from single-cell RNA-seq.
GNU General Public License v3.0
86 stars 19 forks source link

position parameter bug for RunMCA.Seurat() #18

Open MingLi-929 opened 1 year ago

MingLi-929 commented 1 year ago

https://github.com/RausellLab/CelliD/blob/e306b43e05a7d895d6d7fa7b149c9091467fe71c/R/mca.R#L77

Here,should add the

 data_matrix <- as.matrix(GetAssayData(X, slot=slot)) 

or it will return bug with

r$> data_matrix <- as.matrix(GetAssayData(brain, "data"))
Error in `GetAssayData()`:
! `assay` must be one of "Spatial" or "SCT", not "data".
MingLi-929 commented 1 year ago

this bug come with

r$> packageVersion("Seurat")
[1] ‘4.9.9.9059’