Skip to content

Spectra

Bioc current

Spectra Infrastructure for Mass Spectrometry Data

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

Release Lineage

Entered 3.12 · Oct 28, 2020

Current · Requires R 4.6

1.0 In 12 of 49 releases 3.23

Description

The Spectra package defines an efficient infrastructure for storing and handling mass spectrometry spectra and functionality to subset, process, visualize and compare spectra data. It provides different implementations (backends) to store mass spectrometry data. These comprise backends tuned for fast data access and processing and backends for very large data sets ensuring a small memory footprint.

Advisories

None published for Bioconductor

Test coverage

Line coverage

–

Expression

–

Tests / Examples

–

Functions

123 35 exported

Complexity

4 avg / 15 max

Call network

123 nodes / 40 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

32,977

Files

109

Compiled share

0%

Has compiled src

No

Language breakdown

R 13,683 (41.5%)Tests 8,911 (27%)Docs 6,631 (20.1%)Vignettes 3,752 (11.4%)

API

Exported functions

36

Internal functions

86

Recent export changes

v3.23+2 rbindlistWithRownames, shiftPeaks
v3.22+2 fragmentGroupIndex, precursorPurity

Testing

Has tests

Yes

Test-to-code ratio

0.79

testthat edition

–

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

13.3%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

–

C++ standard

–

License

Artistic-2.0

License flags

SPDX valid, OSI approved

History

Versions

12

First release

2020-11-25

Latest release

2026-06-08

Avg cadence

188 days

Cold removal rate

100%

Dep drift

3

LOC over versions

v3.12: 15,088 LOCv3.13: 15,950 LOCv3.14: 16,581 LOCv3.15: 19,790 LOCv3.16: 21,995 LOCv3.17: 24,934 LOCv3.18: 26,565 LOCv3.19: 28,042 LOCv3.20: 31,140 LOCv3.21: 31,642 LOCv3.22: 32,350 LOCv3.23: 32,977 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
READMEYes · 578 wordsVignettesYes · 3 · dynamicNEWSYes · 67% structuredCitation fileYes · cites a publication
Help pages
27 (1 internal)
Examples that run
100%22 run in a plain check
Exported functions with examples
85%
Documented parameters
89%
Return-value docs
80%
Help pages citing references
7%

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/spectra on 2026-10-18.

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-09-14 · 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
fft_spectrum–––

All of Spectra's data objects

Topics

Available on

CRANr2uBioconductorautoCRANCOPR

Depended on by (22)

Show all 27 packagesHide all 27 packages

Suggested by (5)

People

Cite

Cite this package

Run in R for the authors' entry:

citation("Spectra")

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 Spectra version 1.22.2 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, 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