score_network {immcp}R Documentation

score_network

Description

Calculating differences in disease network characteristics before and after removal of drug targets

Usage

score_network(BasicData, n = 1000)

Arguments

BasicData

A BasicData object.

n

Number vector, the number of times random permutation sampling, default to 1000.

Value

A list.

Author(s)

Yuanlong Hu

Examples

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)
res <- score_network(BasicData, n = 100)

[Package immcp version 1.0.3 Index]