Description Usage Arguments Value Examples
View source: R/accessory_functions.R
getSimilarities
calculates the similarities of one spectrum or
neutral loss pattern to a set of other spectra or neutral loss patterns.
1 2 | getSimilarities(spec, speclist, type = c("spectrum", "neutral_losses"),
hits_only = FALSE)
|
spec |
The spectrum to be compared to other spectra. Can be either an
object of class |
speclist |
The set of spectra to which |
type |
Specifies whether MS2 spectra or neutral loss patterns are to be
compared. Must be either |
hits_only |
Logical that indicates whether the result should contain only similarities greater than zero. |
A named vector with similarities of spec
to all spectra or
neutral loss patterns in speclist
.
1 2 3 4 5 | load(file = system.file("extdata",
"annotatedSpeclist.RData",
package = "CluMSIDdata"))
getSimilarities(annotatedSpeclist[[137]],
annotatedSpeclist, hits_only = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.