README.md

biodbChebi

Codecov test coverage

An R Bioconductor package for accessing ChEBI online database, based on Bioconductor package/framework biodb.

Introduction

biodbChebi is an extension package of the biodb package. It allows to connect to ChEBI for retrieving entries, searching for entries by name or mass, and convert CAS IDs or InChI to ChEBI IDs.

Examples

Getting a single entry:

bdb <- biodb::newInst()
chebi <- bdb$getFactory()$createConn('chebi')
entries <- chebi$getEntry(c('2528', '7799', '15440'))
bdb$entriesToDataframe(entries)

Searching by name and mass:

bdb <- biodb::newInst()
chebi <- bdb$getFactory()$createConn('chebi')
ids <- chebi$searchCompound(name='aspartic', mass=133,
    mass.field='molecular.mass', mass.tol=0.3, max.results=3)

See the vignette for more examples.

Installation

Install the latest stable version using Bioconductor:

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install('biodbChebi')

Documentation

See the introduction vignette:

vignette('biodbChebi', package='biodbChebi')

Citations



pkrog/biodbChebi documentation built on March 29, 2022, 8:40 a.m.