addDBLayer: Add a drug layer to a mully graph

View source: R/DrugBank.R

addDBLayerR Documentation

Add a drug layer to a mully graph

Description

Add a drug layer to a mully graph

Usage

addDBLayer(g, data, drugList)

Arguments

g

The mully graph

data

The dataframe containing the parsed information of DrugBank. This argument can be obtained using the function loadDBXML(DrugBankFile)

drugList

The list of DrugBank Ids of the drugs to be added. This argument can be either a string (one drug) or a list of strings (multiple drugs)

Value

A mully graph with the added drug layer

Examples

## Not run:  
data=readDBXML(DBXMLFilePath)
g=mully("DrugBank",direct=T)
g=addDBLayer(g,data,c("DB00001","DB06605"))

## End(Not run)

frankkramer-lab/Multipath documentation built on June 12, 2025, noon