Description Usage Arguments Details Value References Examples
Calculate CSCS distance
1 2 | cscs(features, css, dissimilarity = T, cosine_threshold = 0.6,
weighted = T, normalize = T)
|
features |
Matrix of feature intensities in each sample (pxn) |
css |
Square matrix of cosine similarities of features (pxp) |
dissimilarity |
Output dissimilarity matrix |
cosine_threshold |
Only include features below this threshold |
weighted |
Weight features by intensity (TRUE) or absence/presence (FALSE) |
The value of cosine_threshold is 0.6 in Sedio et al. but for certain applications other values might be better.
A pxp matrix of CSCS distances
Sedio et al, 2016
1 2 3 4 5 6 | #Get arbitrary GNPS project
gnps <- prepare_GNPS("0310e20491314ddbbf12d56b592548b4")
dist <- cscs(gnps$features, gnps$css)
#GlobalEuphorbia data
cscs(GEfeatures, GEcss)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.