Learn R Programming

immcp (version 1.0.3)

score_sim: Calculating similarity between drug and disease

Description

Calculating drug-disease similarity based on biological descriptors

Usage

score_sim(BioDescr, method = "jaccard", n = 1000)

Arguments

BioDescr

BioDescr object.

method

method to compute similarity, default "jaccard". See proxyC::simil.

n

number.

Value

A list.

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab