Description Usage Arguments Examples
View source: R/mle.getPatientSimilarity.r
This function calculates the universal distance between patients, using a mutual information metric, where self-information comes from the minimum encoding length of each patient's encoded modular perturbations in the background knowledge graph.
1 | mle.getPatientSimilarity(ig, path, data.pvals, patient1, patient2)
|
ig |
- An igraph object of the background knowledge graph. |
path |
- The filepath to a directory of the stored patient-specific RData files. |
data.pvals |
- The matrix that gives the perturbation strenght significance for all variables (columns) for each patient (rows) |
patient1 |
- The row name in data.pvals corresponding to the first patient in the pair of patients being compared. |
patient2 |
- The row name in data.pvals corresponding to the second patient in the pair of patients being compared. |
1 | mle.getPatientSimilarity(ig, path, data.pvals, patient1, patient2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.