Peak clustering
nmr_peak_clustering(
peak_data,
peak2peak_dist = NULL,
num_clusters = NULL,
max_dist_thresh_ppb = NULL,
verbose = FALSE
)
The peak list
The distances obtained with nmr_get_peak_distances.
If NULL it is computed from peak_data
If you want to fix the number of clusters. Leave NULL
if you want to estimate it
To estimate the number of clusters, we enforce a limit on how far two peaks of the same cluster may be. By default this threshold will be computed as 3 times the median peak width (gamma), as given in the peak list.
A logical vector to print additional information
A list including:
The peak_data
with an additional "cluster" column
cluster: the hierarchical cluster
num_clusters: an estimation of the number of clusters
num_cluster_estimation: A list with tables and plots to justify the number of cluster estimation