Description Usage Arguments Value
Calculate the spectral similarity using one of the available methods. The mzDt containing n-unique seqNums is converted into a matrix with n-columns. All unique combinations are calculated and returned. The output can be further processed to a similarity matrix using similarity2SquareMatrix(). mzDt should contain self-normalized spectra (see: .normalizeEachSpectrum_dt()). Each spectrum should contain mzGrid and mzGrid_index corresponding to the global mz grid (see: indexMasterSpectrum()).
1 | .specSim(mzDt, similarity_method)
|
mzDt |
the data.table containing two or more spectra to be compared. |
similarity_method |
choose one: "dotProd", "specContrast", "specCor", "brayCurtis", "euclidean" |
returns a 3-column matrix containing the similarity score and sequence numbers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.