dbxml2df {customCMPdb}R Documentation

Convert drugbank database (xml file) into dataframe.

Description

Download the original DrugBank database at http://www.drugbank.ca/releases/latest (xml file) into your current working directory and rename as "drugbank.xml" then run: drugbank_df = dbxml2df(xmlfile="drugbank.xml", version="5.0.10").

Usage

dbxml2df(xmlfile, version)

Arguments

xmlfile

Character(1), file path to the xml file downloaded from the DrugBank website at https://www.drugbank.ca/releases/latest

version

Character(1), DrugBank version of the xml file

Value

Dataframe of drugbank xml database.

Note

This process with take about 20 minutes.

Author(s)

Yuzhu Duan yduan004@ucr.edu

References

http://www.drugbank.ca/releases/latest

See Also

df2SQLite

Examples

library(XML)
## Not run: 
## download the original drugbank database at 
\url{http://www.drugbank.ca/releases/latest} (xml file)
## into your current directory and rename as drugbank.xml

## convert drugbank database (xml file) into dataframe: 
drugbank_df <- dbxml2df(xmlfile="drugbank.xml", version="5.0.10")

## End(Not run)

[Package customCMPdb version 1.2.0 Index]