View source: R/calculate_similarity.R
calculate_similarity | R Documentation |
Efficiently calculates similarity scores between query and target spectra using either entropy or GNPS methods
calculate_similarity(
method,
query_spectrum,
target_spectrum,
query_precursor,
target_precursor,
dalton,
ppm
)
method |
Method ("entropy" or "gnps") |
query_spectrum |
Query spectrum matrix |
target_spectrum |
Target spectrum matrix |
query_precursor |
Query precursor |
target_precursor |
Target precursor |
dalton |
Dalton tolerance |
ppm |
PPM tolerance |
Similarity score or NA_real_ if calculation fails
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.