PrepareData: PrepareData

View source: R/PrepareData.R

PrepareDataR Documentation

PrepareData

Description

Prepare input format.

Usage

PrepareData(..., from, to, diseaseID, format = "single", sep)

Arguments

...

data frame, containing interaction information.

from

A charactor vector, containing "drug", "herb", "compound", or "target".

to

A character vector, containing "drug", "herb", "compound", or "target".

diseaseID

Charactor vector, diseaseID

format

one of "single" or "basket".

sep

Separator.

Value

A igraph object.

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

immcp documentation built on May 12, 2022, 9:05 a.m.