dbxml2df: Convert drugbank database (xml file) into dataframe.

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/dbxml_handle.R

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

yduan004/customCMPdb documentation built on Feb. 3, 2022, 2:10 p.m.