Discover clone leaves: smoothed PCA + Ward tree over-cut
Source:R/clones_discovery.R
discover_clones.Rdirlba PCA of the centred feature matrix, kNN smoothing of the PCs (mean over each cell and its k
neighbours, FNN), Ward.D2 hclust on the smoothed PCs, cut at max_leaves; leaves smaller than
min_size are merged into the nearest leaf (centroid distance). The leaves over-split on purpose;
merge_clones() merges them back with a calibrated test.
Arguments
- X
cells x features matrix (
clone_feature_matrix())- n_pc
principal components
- k
neighbours for the smoothing
- max_leaves
leaves of the over-cut
- min_size
minimal leaf size (cells)
- seed
RNG seed