score_sim | R Documentation |
Calculating drug-disease similarity based on biological descriptors
score_sim(BioDescr, method = "jaccard", n = 1000)
BioDescr |
BioDescr object. |
method |
method to compute similarity, default "jaccard". See |
n |
number. |
A list.
Yuanlong Hu
## Not run: data(drugdemo) drug_herb <- PrepareData(drugdemo$drug_herb, from = "drug", to="herb") herb_compound <- PrepareData(drugdemo$herb_compound, from = "herb", to="compound") compound_target <- PrepareData(drugdemo$compound_target, from = "compound", to="target") disease <- PrepareData(drugdemo$disease, diseaseID = "disease",from = "target", to="target") BasicData <- CreateBasicData(drug_herb, herb_compound, compound_target, diseasenet = disease) biodescr <- extr_biodescr(BasicData, geneset= "kegg") res <- score_sim(biodescr, method="jaccard", n=1000) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.