Skip to Content

dbparser

Developed by Mohamed Ali, sponsored by Aggregate Genius Inc.

dbparser at a Glance

dbparser is an rOpenSci peer-reviewed R package that parses drug and gene databases into analysis-ready R objects called dvobjects (drugverse objects). Every dataset records where it came from: the source, its release and its licence.

The current version is 2.3.0. Install it from CRAN with install.packages("dbparser").

New in dbparser 2.3.0

  • •HGNC: approved gene symbols, aliases and previous symbols, so you can clean a gene list (PD1 becomes PDCD1).
  • •Health Canada Drug Product Database: products, ingredients and marketing status in Canada.
  • •openFDA: US drug data from the FDA's open data (Drugs@FDA and NDC).
  • •HPO: gene–phenotype links, to anticipate on-target effects.
  • •A standard metadata block on every dataset: source, release, licence and file checksums, so your analysis can show exactly what it used.
  • •New tutorial: Clean a Gene List with HGNC.

Use dbparser from Claude

dbparser.mcp is a free, open-source companion that lets Claude Desktop and Claude Code use dbparser on your own computer: list the parsers, parse a file you downloaded, describe it, read a table and export it to CSV. It runs locally and reads only; nothing leaves your machine. See it step by step on the [dbparser and dbparser Pro page](/services/dbparser-pro), or get it on GitHub.

Supported Databases

parseDrugBank()
DrugBank (licence not stated), since 2.0.0
parseOnSIDES()
OnSIDES (CC-BY-4.0), since 2.2.1
parseTWOSIDES()
TWOSIDES (licence not stated), since 2.2.1
parseHPO()
Human Phenotype Ontology, via Harmonizome (CC-BY-NC-SA-4.0), new in 2.3.0
parseHGNC()
HGNC (CC0-1.0), new in 2.3.0
parseHealthCanadaDPD()
Health Canada Drug Product Database (OGL-Canada-2.0), new in 2.3.0
parseOpenFDA()
openFDA (CC0-1.0), new in 2.3.0

Each source keeps its own licence; check its terms before use. DrugBank is downloaded from DrugBank under your own free account.

Integration Workflow

  1. 1.Parse each source database.
  2. 2.Merge datasets into one integrated knowledge object.
  3. 3.Query enriched tables for adverse events and drug-drug interaction patterns.

This workflow suits explainable pharmacovigilance analyses, drug safety research pipelines and reusable internal data products.

For Teams: dbparser Pro

dbparser stays free. dbparser Pro, from Interstellar, adds matched products across registers, licensed and private data in PostgreSQL, scheduled refresh, validation reports and priority support. See [dbparser and dbparser Pro](/services/dbparser-pro).

Learn More