View source: R/utility_functions.R
jaccardSimilarityMatrix | R Documentation |
Computes Jaccard similarity mtrix for list of genesets
jaccardSimilarityMatrix(gene.sets, y = NULL, assert.unique = T)
gene.sets |
named list of genesets, where names specify name of gene set, and entries are character vectors specifying genes belongs to the respective set. |
y |
Optional second gene set. If provided, resulting matrix is gene.sets x y. |
assert.unique |
Logical flag specifying whether to remove duplicate entries within individual sets. Default is TRUE. |
Jaccard similarity matrix
Nicholas Mikolajewicz
pheatmap
# compute jaccard similarity matrix for (named) list of genesets.
j.mat <- jaccardSimilarityMatrix(gene.sets)
# generate heatmap
pheatmap::pheatmap(j.mat, show_colnames = F, main = "Jaccard Similarity")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.