当前,我正在运行SPOTlight包,并尝试将聚光灯分解部分。我的参考scRNAseq数据上的代码。我正在运行的代码如下:
#Spotlight decomposition
set.seed(123)
spotlight_ls <-spotlight_deconvolution(
se_sc = E14_sc,
counts_spatial = anterior@assays$RNA@counts,
clust_vr = "subclass", # Variable in sc_seu containing the cell-type annotation
cluster_markers = cluster_markers_all, # Dataframe with the marker genes
cl_n = 100, # number of cells per cell type to use
hvg = 3000, # Number of HVG to use
ntop = NULL, # How many of the marker genes to use (by default all)
transf = "uv", # Perform unit-variance scaling per cell and spot prior to
factorzation and NLS
method = "nsNMF", # Factorization method
min_cont = 0 # Remove those cells contributing to a spot below a certain threshold
)当我运行这段代码时,我会得到以下错误:spotlight_deconvolution中的错误(se_sc= E14_sc,counts_spatial =Fronan@assays$RNA@count,:未能找到函数"spotlight_deconvolution“)
发布于 2022-03-03 16:56:56
我也有同样的错误。函数的名称现在只是SPOTlight(),参数名称已经更新,但我认为函数是相同的。
https://stackoverflow.com/questions/70826902
复制相似问题