Calculate the Jaccard distance between two genesets.
calculateJaccard(a, b)
character vector, set of gene identifiers.
The Jaccard distance of the sets.
## Mock example showing how the data should look like
a <- c("PDHB", "VARS2")
b <- c("IARS2", "PDHA1")
c <- calculateJaccard(a, b)
## Example using the data available in the package
data(macrophage_topGO_example_small,
package = "GeDi",
envir = environment())
genes <- GeDi::getGenes(macrophage_topGO_example_small)
jaccard <- calculateJaccard(genes[1], genes[2])