Drugs Databases Parser
Overview
This tool is for parsing public drug databases such as 'DrugBank' XML database https://go.drugbank.com/. The parsed data are then returned in a proper 'R' object called 'dvobject'.
This is a major feature release focused on expanding dbparser's capabilities into real-world pharmacovigilance and drug-drug interaction analysis. The integration engine has been formalized around a "Hub and Spoke" model, with DrugBank acting as the central hub.
NEW FEATURES
- **New Parser:
parseOnSIDES()** - Parses the relational CSV files from the OnSIDES database, a modern resource for adverse drug events extracted from FDA labels.
- Returns a
dvobjectcontaining the 7 core relational tables and an optionalhigh_confidencesummary table. - **New Parser:
parseTWOSIDES()** - Parses the TWOSIDES database, the leading resource for drug-drug interaction (DDI) adverse event signals from real-world data.
- Returns a
dvobjectcontaining thedrug_drug_interactionstable. - The parser correctly handles known column name misspellings in the source data (e.g.,
drug_1_rxnorn_id). - **New Integration Function:
merge_drugbank_onsides()** - Merges a DrugBank
dvobjectwith an OnSIDESdvobject. - Automatically creates an enriched
integrated_datalist, linking OnSIDES data to DrugBank IDs via RxNorm CUIs.
Show all changes in 2.2.1Hide the rest of the changes in 2.2.1
- The function is **chainable**, meaning it can be used in a
%>%pipeline after other merge functions. - **New Integration Function:
merge_drugbank_twosides()** - Merges a DrugBank
dvobjectwith a TWOSIDESdvobject. - Performs a "double join" to enrich both drugs in an interaction pair with their DrugBank IDs and names.
- Uses a robust "union" logic to keep interactions even if only one of the two drugs is present in the input DrugBank object.
- The function is also **chainable**.
- **Subset a DrugBank dvobject function:
subset_drugbank_dvobject()** - Intelligently filters a DrugBank dvobject to retain only the data associated with a specified list of drugbank_ids. It correctly handles the deep,
multi-level nested structure of the entire object, including the complex relationships within the cett list.
- **Subset an OnSIDES dvobject function:
subset_onsides_dvobject()** - Intelligently filters an OnSIDES dvobject by cascading filters through the
relational tables, ensuring the final subset is self-consistent.
- **Adding metadata to existing
dvobjectobjects using function:add_database_info()** - **Major enhancements to function
show_dvobject_metadata()** - Displays information about passed dbobject object including basic info,
database metadata, and all data.frames contained within nested lists.
- Run
vignette("dbparser_2_2", package = "dbparser")for more info
DOCUMENTATION
- **New Vignette: "Integrated Pharmacovigilance"**
- A comprehensive new tutorial demonstrating a full, three-way integration of DrugBank, OnSIDES, and TWOSIDES.
- Includes a complete scientific case study analyzing single-drug vs. polypharmacy risks.
- Introduces a reproducible example workflow using a pre-computed RDS data object hosted externally to keep the package lightweight.
- Run
vignette("drugbank_nside", package = "dbparser")for more info - Updated existing vignette and package Readme with enhanced examples
BUG FIXES & MINOR IMPROVEMENTS
- Several minor fixes are done
---
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 66 (54 internal)includes a package overview page
- Examples that run
- 0%3 never run
- Exported functions with examples
- 25%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 98%
- Median days to close, 50 most recently updated closed issues
- 126
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
14 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/ropensci/dbparser on 2026-10-18.
The R CMD check workflow runs on macOS
GitHub Pages site last deployed 2026-02-14
Show all practicesHide 2 practices
Dependencies
Installing dbparser adds 22 packages (12 with compiled code, 12 MB of source tarballs). Heaviest: data.table 5.7 MB, vctrs 1.0 MB, XML 937 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.2.1Latest2026-01-08 · current release · diff ↗ ·
added 7 exports
add_database_info, merge_drugbank_onsides, merge_drugbank_twosides, parseOnSIDES, parseTWOSIDES, subset_drugbank_dvobject, subset_onsides_dvobject - RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 2.0.32024-04-20 · diff ↗
- 2.0.22024-02-16 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.0.12023-03-27 · diff ↗
- 2.0.02023-03-17 · diff ↗ ·
removed 91 exports
carriers, carriers_actions, carriers_articles, carriers_attachments, carriers_links, carriers_polypep_ex_ident, carriers_polypeptides, carriers_polypeptides_go, carriers_polypeptides_pfams, carriers_polypeptides_syn, carriers_textbooks, cett, drug_affected_organisms, drug_ahfs_codes, drug_atc_codes, drug_calc_prop, drug_categories, drug_classification, drug_dosages, drug_element, drug_element_options, drug_ex_identity, drug_exp_prop, drug_external_links, drug_food_interactions, drug_general_information, drug_groups, drug_interactions, drug_intern_brand, drug_manufacturers and 61 moreadded 5 exports
cett_nodes_options, drug_node_options, parseDrugBank, references_node_options, show_dvobject_metadata - RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.2.02020-08-26 · diff ↗ ·
removed 21 exports
carriers_polypeptide, carriers_polypeptide_ext_id, drug, drug_all, drug_articles, drug_books, drug_links, enzymes_polypeptide, enzymes_polypeptide_ext_ident, enzymes_polypeptide_go, enzymes_polypeptide_pfams, enzymes_polypeptide_syn, targets_polypeptide, targets_polypeptide_ext_ident, targets_polypeptide_go, targets_polypeptide_pfams, targets_polypeptide_syn, transporters_polypeptide, transporters_polypeptide_go, transporters_polypeptide_pfams, transporters_polypeptide_synadded 30 exports
carriers_attachments, carriers_polypep_ex_ident, carriers_polypeptides, cett, drug_general_information, drug_pharmacology, drugs, drugs_articles, drugs_attachments, drugs_links, drugs_textbooks, enzymes_attachments, enzymes_polypep_ex_ident, enzymes_polypeptides, enzymes_polypeptides_go, enzymes_polypeptides_pfams, enzymes_polypeptides_syn, references, run_all_parsers, targets_attachments, targets_polypep_ex_ident, targets_polypeptides, targets_polypeptides_go, targets_polypeptides_pfams, targets_polypeptides_syn, transporters_attachments, transporters_polypeptides, transporters_polypeptides_go, transporters_polypeptides_pfams, transporters_polypeptides_syn - 1.1.22020-06-08 · diff ↗
- 1.1.12020-05-10 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.1.02020-02-21 · diff ↗ ·
removed 82 exports
close_db, get_xml_db_rows, open_db, open_mdb, parse_drug, parse_drug_affected_organisms, parse_drug_ahfs_codes, parse_drug_all, parse_drug_articles, parse_drug_atc_codes, parse_drug_books, parse_drug_calculated_properties, parse_drug_carriers, parse_drug_carriers_actions, parse_drug_carriers_articles, parse_drug_carriers_links, parse_drug_carriers_polypeptides, parse_drug_carriers_polypeptides_external_identifiers, parse_drug_carriers_polypeptides_go_classifiers, parse_drug_carriers_polypeptides_pfams, parse_drug_carriers_polypeptides_synonyms, parse_drug_carriers_textbooks, parse_drug_categories, parse_drug_classification, parse_drug_dosages, parse_drug_element, parse_drug_element_options, parse_drug_enzymes, parse_drug_enzymes_actions, parse_drug_enzymes_articles and 52 moreadded 79 exports
carriers, carriers_actions, carriers_articles, carriers_links, carriers_polypeptide, carriers_polypeptide_ext_id, carriers_polypeptides_go, carriers_polypeptides_pfams, carriers_polypeptides_syn, carriers_textbooks, drug, drug_affected_organisms, drug_ahfs_codes, drug_all, drug_articles, drug_atc_codes, drug_books, drug_calc_prop, drug_categories, drug_classification, drug_dosages, drug_element, drug_element_options, drug_ex_identity, drug_exp_prop, drug_external_links, drug_food_interactions, drug_groups, drug_interactions, drug_intern_brand and 49 more
Show 7 earlier eventsHide 7 earlier events
Package metadata
- First published
- 2018-12-18
- Total releases
- 14 / 8 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5
- Download size
- 2.6 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("dbparser")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.