hc_distance() computes a distance matrix based on PCA scores stored in the AnnDatR object.
Arguments
- AnnDatR
An AnnDatR object containing the data with PCA results.
- components
Number of principal components to be used. If NULL, it will be set to the first component with over 80% explained variance.
- method
Distance metric to use (default is 'spearman'). This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary", "minkowski", "pearson", "spearman" or "kendall".
