Kolmogorov-Smirnov (KS) test is performed on the deconvolution results and the overall level of each cluster.
Arguments
- spot_celltype
A data frame of the result of deconvolution, row is spot, col is celltype.
- spot_clusters
A data frame contains clustering information for spots, row is spots.
- cluster
A character. Use the first column in spot_clusters as the column name if
NULL
. Or provide your own column names that represent clustering information in spot_clusters.