Peak clustering
Usage
nmr_peak_clustering(
peak_data,
peak2peak_dist = NULL,
num_clusters = NULL,
max_dist_thresh_ppb = NULL,
verbose = FALSE
)
Arguments
- peak_data
The peak list
- peak2peak_dist
The distances obtained with nmr_get_peak_distances. If NULL it is computed from
peak_data
- num_clusters
If you want to fix the number of clusters. Leave
NULL
if you want to estimate it- max_dist_thresh_ppb
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.
- verbose
A logical vector to print additional information