View source: R/cos_similarity.R
| cos_similarity | R Documentation |
Computes the cosine similarity matrix from the gene signature matrix of a
cellMarkers object or any matrix. Note that this function computes cosine
similarity between matrix columns, unlike dist() which computes the
distance metric between matrix rows.
cos_similarity(x, use_filter = NULL)
x |
Either a matrix or a 'cellMarkers' class or 'deconv' class object. |
use_filter |
Logical whether to use filtered gene signature. |
A symmetric similarity matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.