View source: R/cluster_spectra.R
cluster_spectra | R Documentation |
Cluster Spectra Takes a grouped tibble of scan data, clusters scans based on a cosine threshold, returns the same tibble with a cluster index.
cluster_spectra(spectra, thres_cos, thres_pks = 2, x = "mz", bin, cores = 1)
spectra |
Grouped tibble |
thres_cos |
Min allowable cosine score for scans to cluster |
thres_pks |
Min allowable number of matched peaks |
x |
Name of x-axis variable ( |
Input tibble with clust_id
column added
spectra_clustered <- spectra %>% group_by(scan, file) %>% cluster_spectra(thres_cos = 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.