Skip to content

CompoundDb

Bioc current

Creating and Using (Chemical) Compound Annotation Databases

v1.16.0 · Package record · software · Artistic-2.0

Release Lineage

Entered 3.15 · Apr 27, 2022

Current · Requires R 4.6

1.0 In 9 of 49 releases 3.23

Description

CompoundDb provides functionality to create and use (chemical) compound annotation databases from a variety of different sources such as LipidMaps, HMDB, ChEBI or MassBank. The database format allows to store in addition MS/MS spectra along with compound information. The package provides also a backend for Bioconductor's Spectra package and allows thus to match experimetal MS/MS spectra against MS/MS spectra in the database. Databases can be stored in SQLite format and are thus portable.

Advisories

None published for Bioconductor

Test coverage

Line coverage

–

Expression

–

Tests / Examples

–

Functions

102 30 exported

Complexity

3.1 avg / 16 max

Call network

102 nodes / 106 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

10,570

Files

67

Compiled share

0%

Has compiled src

No

Language breakdown

R 4,777 (45.2%)Tests 2,879 (27.2%)Docs 1,798 (17%)Vignettes 1,116 (10.6%)

API

Exported functions

30

Internal functions

72

Recent export changes

v3.22+1 addJoinDefinition

Testing

Has tests

Yes

Test-to-code ratio

0.60

testthat edition

–

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

50%

Unsafe pattern score

0

Dep constraint coverage

9.5%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1

System requirements

–

C++ standard

–

License

Artistic-2.0

License flags

SPDX valid, OSI approved

History

Versions

9

First release

2022-09-01

Latest release

2026-04-28

Avg cadence

182 days

Cold removal rate

–

Dep drift

3

LOC over versions

v3.15: 8,494 LOCv3.16: 9,164 LOCv3.17: 9,287 LOCv3.18: 9,287 LOCv3.19: 9,287 LOCv3.20: 9,667 LOCv3.21: 9,983 LOCv3.22: 10,567 LOCv3.23: 10,570 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/bioc-code-metrics.

Documentation

In the Bioconductor 3.23 release
README· In the Bioconductor git repository, left out of the releaseVignettesYes · 2 · dynamicNEWSYes · 67% structuredCitation fileYes · cites a publication
Help pages
12
Examples that run
100%12 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
8%

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/rformassspectrometry/compounddb on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-03-19 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting
Lint, format, editor (1)
EditorConfig
How this is detected·Detection ruleset v3 (2026-09-26)

Datasets

Bundled datasets · 1
NameClassSizeAlso in
adductsdata.frame286 × 7No other package

All of CompoundDb's data objects

Topics

Maintainer
Johannes Rainer

Available on

CRANr2uBioconductorautoCRANCOPR

Depended on by (2)

Bioconductor (1)

CRAN (1)

Suggested by (3)

People

Cite

Cite this package

Run in R for the authors' entry:

citation("CompoundDb")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.3390/metabo12020173.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for CompoundDb version 1.16.0 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy