Skip to content
cccskills
FreePublished on GitHub

bioconductor-msbackendmassbank

Mass spectrometry (MS) data backend supporting import and export of MS/MS library spectra from MassBank record files. Different backends are available that allow handling of data in plain MassBank text file format or allow also to interact directly with MassBank SQL databases. Objects from this package are supposed to be used with the Spectra Bioconductor package. This package thus adds MassBank support to the Spectra package.

The English summary is being prepared. Showing the original description.

Run score Not tested

See how to install

Files included (1)

  • SKILL.md4.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

MsBackendMassbank

Workflows

Standard Workflow

Mass spectrometry (MS) data backend supporting import and export of MS/MS library spectra from MassBank record files. Different backends are available that allow handling of data in plain MassBank text file format or allow also to interact directly with MassBank SQL databases. Objects from this package are supposed to be used with the Spectra Bioconductor package. This package thus adds MassBank support to the Spectra package.

library(Spectra)
library(MsBackendMassbank)
fls <- dir(system.file("extdata", package = "MsBackendMassbank"), full.names = TRUE, pattern = "txt$")
sps <- Spectra(fls, source = MsBackendMassbank(), backend = MsBackendDataFrame(), nonStop = TRUE)
sps <- dropNaSpectraVariables(sps)

Input: A character vector of paths to MassBank text files. Output: A Spectra object containing the imported mass spectrometry data.

When to Use

  • Importing and exporting MS/MS library spectra from MassBank record files (plain text format) into Spectra objects.
  • Querying and interacting directly with a local MassBank SQL database (MySQL or SQLite) using MsBackendMassbankSql.
  • Comparing spectra similarity and generating mirror plots using compareSpectra and plotSpectraMirror.

When NOT to Use

  • For raw LC-MS data processing (e.g., peak picking, retention time correction), use xcms.
  • For handling non-MassBank formats like mzML or mzXML without MassBank metadata, use standard Spectra backends like MsBackendMzR.

Data Requirements

  • Plain text files in MassBank record format (one file per spectrum), or a local SQL database containing MassBank release dumps.

Key Parameters

  • source: An instance of MsBackendMassbank() or MsBackendMassbankSql() specifying the data source.
  • backend: An instance of MsBackendDataFrame() or other Spectra backends to store the imported data.
  • nonStop (FALSE): If TRUE, prevents the import from stopping when problematic MassBank files are encountered.
  • metaBlock: Configured blocks of metadata fields to import, generated by metaDataBlocks(ac = TRUE, ms = TRUE).
  • ppm (40): Parts-per-million tolerance for m/z matching in compareSpectra or plotSpectraMirror.

Best Practices

  • Set nonStop = TRUE when importing a large number of MassBank files to prevent a single malformed file from crashing the process.
  • Use dropNaSpectraVariables to remove imported spectra variables that contain only missing values across all spectra.
  • Use MsBackendMassbankSql for large-scale analyses to fetch data on demand from a local SQL database instead of loading thousands of text files into memory.

Common Pitfalls

  • Attempting parallel processing with MsBackendMassbankSql: The database connection cannot be shared across parallel processes, so parallel processing is silently disabled.
  • Slow import times: Importing all metadata blocks can be slow; customize the imported blocks using metaDataBlocks or use the SQL backend.

Alternatives

  • Spectra with MsBackendDataFrame for in-memory generic spectrum handling.
  • MsCoreUtils for low-level mass spectrometry helper functions.

Citations

  • Witting, Rainer, Stravs 2026, MsBackendMassbank (vignette documentation)

References

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

The package contains functions for exploratory oligonucleotide array analysis. The dependence on tkWidgets only concerns few convenience functions. 'affy' is fully functional without it.

The English summary is being prepared. Showing the original description.

bioMate-AI/biomate-bioconductor-kb793Updated Jun 21, 2026

This tool uses the label-tree function from HyPhy to annotate a phylogenetic tree. It allows users to select a subset of leaves using either a regular expression or a list of sequence names, and then apply a specified label to these selecte

The English summary is being prepared. Showing the original description.

bioMate-AI/biomate-bioconductor-kb793Updated Jun 21, 2026

This package provides a client for the Bioconductor AnnotationHub web resource. The AnnotationHub web resource provides a central location where genomic files (e.g., VCF, bed, wig) and other resources from standard locations (e.g., UCSC, En

The English summary is being prepared. Showing the original description.

bioMate-AI/biomate-bioconductor-kb793Updated Jun 21, 2026

apeglm provides Bayesian shrinkage estimators for effect sizes for a variety of GLM models, using approximation of the posterior for individual coefficients.

The English summary is being prepared. Showing the original description.

bioMate-AI/biomate-bioconductor-kb793Updated Jun 21, 2026

ASURAT is a software for single-cell data analysis. Using ASURAT, one can simultaneously perform unsupervised clustering and biological interpretation in terms of cell type, disease, biological process, and signaling pathway activity. Inputting a single-cell RNA-seq data and knowledge-based databases, such as Cell Ontology, Gene Ontology, KEGG, etc., ASURAT transforms gene expression tables into original multivariate tables, termed sign-by-sample matrices (SSMs).

The English summary is being prepared. Showing the original description.

bioMate-AI/biomate-bioconductor-kb793Updated Jun 21, 2026

AUCell allows to identify cells with active gene sets (e.g. signatures, gene modules...) in single-cell RNA-seq data. AUCell uses the "Area Under the Curve" (AUC) to calculate whether a critical subset of the input gene set is enriched with

The English summary is being prepared. Showing the original description.

bioMate-AI/biomate-bioconductor-kb793Updated Jun 21, 2026

See all skills by bioMate-AI

Report a problem with this skill