score_sim {immcp}R Documentation

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.

Author(s)

Yuanlong Hu

Examples

## 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)

[Package immcp version 1.0.3 Index]