View source: R/dimension_reduction.R
Jaccard | R Documentation |
Finds the Jaccard similarity between rows of the two matrices. Note that the matrices must be binary, and any rows with zero total counts will result in an NaN entry that could cause problems in downstream analyses.
Jaccard(x, y)
x |
The first matrix |
y |
The second matrix |
This will calculate the raw Jaccard index, without normalizing for the expected similarity between cells due to differences in sequencing depth.
Returns a matrix
x <- matrix(data = sample(c(0, 1), size = 25, replace = TRUE), ncol = 5)
Jaccard(x = x, y = x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.