
Get Cluster Features
get_cluster_features.RdSummarizes top features per cluster from expression data or selected result
columns, with optional z-score scaling. Features are ranked by their mean
(or z-scored mean) within each cluster, and the top topn are returned.
Arguments
- spe
SpatialExperimentwith clustering results.- clusterid
Name of the column containing cluster labels.
- topn
Number of top features to return per cluster.
- spmethod
Method used for clustering (e.g.,
dorothea,collectri,progeny,expression, a deconvolution method token, or a custom result prefix).- zscore
Logical; z-score scale features before ranking.