score_network: score_network

Description Usage Arguments Value Author(s) Examples

View source: R/score_network.R

Description

Calculate the network score

Usage

1
score_network(Tar, DNet, n = 100, two_tailed = TRUE)

Arguments

Tar

A BasicData object containing drug target.

DNet

A data frame of disease network containing two columns.

n

The number of times random permutation sampling.

two_tailed

a logical: select a two-tailed p-value.

Value

ScoreResultNet object

Author(s)

Yuanlong Hu

Examples

1
2
3
4
5
6
7
8
  data("drugSample")
  drug_herb <- PrepareData(drugSample$drug_herb, col1 = "drug", col2 = "herb")
  herb_target <- PrepareData(drugSample$herb_target,
                             col1 = "herb", col2 = "target",
                             format = "basket", sep = ", ")
  drug_target <- CreateBasicData(drug_herb, herb_target)
  res <- score_network(Tar = drug_target, DNet = drugSample$disease_network)
  res <- get_result(res)

immcp documentation built on Nov. 14, 2020, 5:09 p.m.