The SpatialDecon library implements the SpatialDecon algorithm for mixed cell deconvolution in spatial gene expression datasets. (This algorithm also works in bulk expression profiling data.)
When running runspatialdecon, I got the following error:
Error in [<-(*tmp*, colnames(result$beta), , value = t(result$beta)) :
subscript out of bounds
When running runspatialdecon, I got the following error: Error in
[<-
(*tmp*
, colnames(result$beta), , value = t(result$beta)) : subscript out of boundsHere is my code:
target_MRD_Data_filter2$istumor = target_MRD_Data_filter2$SegmentLabel == "Tumor" restils = runspatialdecon(object = target_MRD_Data_filter2, norm_elt = "q_norm",
raw_elt = "exprs",
X = safeTME,
cellmerges = safeTME.matches,
cell_counts = target_MRD_Data_filter2$AOINucleiCount,
is_pure_tumor = target_MRD_Data_filter2$istumor, n_tumor_clusters = 10)
Hope to get your help about the reasons. Thank you so much!