Interface to the Biological Magnetic Resonance Data Bank ('BMRB')

A comprehensive interface to the Biological Magnetic Resonance Data Bank ('BMRB') < https://bmrb.io>, mirroring all functionality of the 'PyBMRB' 'Python' package (v3.0). Provides four modules: (1) 'ChemicalShift' for fetching per-entry chemical shift data from the 'BMRB' 'REST' 'API' or local 'NMR-STAR' files; (2) 'ChemicalShiftStatistics' for database-wide statistical queries; (3) Spectra for simulating '1H-15N' 'HSQC', '1H-13C' 'HSQC', '1H-1H' 'TOCSY', and generic 2D 'NMR' spectra as interactive plots; and (4) Histogram for chemical shift distribution visualizations with optional filtering by pH, temperature, and ambiguity code. All interactive plots are rendered via 'plotly'. Uses the 'BMRB' REST API v2 < https://api.bmrb.io/v2/>.


RBMRB

CRAN status

RBMRB is a comprehensive R interface to the Biological Magnetic Resonance Data Bank (BMRB), mirroring all functionality of PyBMRB 3.0.

Installation

# From CRAN
install.packages("RBMRB")

# Development version from GitHub
# install.packages("remotes")
remotes::install_github("bmrb-io/RBMRB")

Quick start

library(RBMRB)

# Verify connectivity
bmrb_test()

# Fetch chemical shifts
cs <- cs_from_bmrb(15060)
cs_peek(cs)

# Simulate spectra (interactive Plotly)
n15hsqc(bmrb_ids = 15060, legend = "residue")
c13hsqc(bmrb_ids = 15060)
tocsy(bmrb_ids   = 15060)

# Compare two entries
n15hsqc(bmrb_ids = c(17076, 17077), draw_trace = TRUE)

# Chemical shift histograms
cs_hist("ALA", "CA")
cs_hist2d("ALA", "CA", "CB")
conditional_cs_hist("SER", "N", filtering_rules = list(CA = 55.5))

# Export peak list (CSV or Sparky)
pl <- create_n15hsqc_peaklist(bmrb_ids = 15060)
export_peak_list(pl, "peaks.csv")
export_peak_list(pl, "peaks.sparky", output_format = "sparky")

Modules

Module Functions Description
ChemicalShift cs_from_bmrb(), cs_from_file() Per-entry chemical shifts
ChemicalShiftStatistics get_cs_data(), get_2d_cs_data() Database-wide statistics
Spectra n15hsqc(), c13hsqc(), tocsy(), generic_2d() Spectrum simulation
Histogram cs_hist(), cs_hist2d(), conditional_cs_hist() Distributions

Citation

If you use RBMRB in published research, please cite:

Ulrich EL et al. (2008). BioMagResBank. Nucleic Acids Research 36, D402–D408. https://doi.org/10.1093/nar/gkm957

Baskaran K et al. (2021). PyBMRB: Data visualization tool for BioMagResBank. Proc. 20th Python in Science Conf., 59–62.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("RBMRB")

3.0.0 by Kumaran Baskaran, 8 hours ago


https://github.com/bmrb-io/RBMRB


Report a bug at https://github.com/bmrb-io/RBMRB/issues


Browse source code at https://github.com/cran/RBMRB


Authors: Kumaran Baskaran [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports httr2, jsonlite, plotly, cli

Suggests testthat, knitr, rmarkdown, htmlwidgets, withr


See at CRAN