View source: R/measure_separation.R
measure_separation | R Documentation |
Measure separation of two entities (disease or drugs)
measure_separation(genesA, genesB, gr)
genesA |
list of genes associated with the given drug/disease. |
genesB |
list of genes associated with the given drug/disease. |
gr |
the subnetwork igraph graph object that contains all genes involved in diseases (according to DisNor) and drug targets (according to Drugbank) of interest. |
numeric
## Not run: library(drugdealR) d <- load_interactome() To calculate separation between two drugs, insert drug names measure_separation(d$drug1_genes, d$drug2_genes, gr) To calculate separation between two diseases, insert disease names measure_separation(d$disease1_genes, d$disease2_genes, gr) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.