View source: R/cosines_pairwise.R
cosine_pairwise | R Documentation |
Calculate Cosine Scores Pairwise Takes a grouped tibble of scan data, calculates pairwise cosine similarities
cosine_pairwise( spectra, x = "mz", thres_cos = 0, thres_rt = Inf, cores = 1, bin )
spectra |
Grouped tibble |
x |
Name of x-axis variable ( |
thres_cos |
Min allowable cosine score for scans to cluster |
thres_rt |
Max allowable RT difference for scans to cluster |
Input tibble but with neighbor and cos columns added
spectra_clustered <- spectra %>% group_by(scan, file) %>% cluster_spectra()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.