dbxml2df {customCMPdb} | R Documentation |
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")
.
dbxml2df(xmlfile, version)
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 |
Dataframe of drugbank xml database.
This process with take about 20 minutes.
Yuzhu Duan yduan004@ucr.edu
http://www.drugbank.ca/releases/latest
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)