Skip to content

msPurity

Bioc current

Automated Evaluation of Precursor Ion Purity for Mass Spectrometry Based Fragmentation in Metabolomics

v1.38.0 · software · GPL-3 + file LICENSE

Release Lineage

Entered 3.4 · Oct 18, 2016

Current · Requires R 4.6

1.0 In 20 of 49 releases 3.23

Description

msPurity R package was developed to: 1) Assess the spectral quality of fragmentation spectra by evaluating the "precursor ion purity". 2) Process fragmentation spectra. 3) Perform spectral matching. What is precursor ion purity? -What we call "Precursor ion purity" is a measure of the contribution of a selected precursor peak in an isolation window used for fragmentation. The simple calculation involves dividing the intensity of the selected precursor peak by the total intensity of the isolation window. When assessing MS/MS spectra this calculation is done before and after the MS/MS scan of interest and the purity is interpolated at the recorded time of the MS/MS acquisition. Additionally, isotopic peaks can be removed, low abundance peaks are removed that are thought to have limited contribution to the resulting MS/MS spectra and the isolation efficiency of the mass spectrometer can be used to normalise the intensities used for the calculation.

Test coverage

Line coverage

Expression

Tests / Examples

Functions

165 19 exported

Complexity

4.8 avg / 34 max

Call network

165 nodes / 119 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

21,488

Files

166

Compiled share

0%

Has compiled src

No

Language breakdown

R 10,450 (48.6%)Tests 2,051 (9.5%)Docs 2,776 (12.9%)Vignettes 6,211 (28.9%)

API

Exported functions

20

Internal functions

140

Recent export changes

v3.9+4 combineAnnotations, createDatabase, flag_remove +1 more
v3.7+1 create_database

Testing & CI

Has tests

Yes

Test-to-code ratio

0.20

testthat edition

CI present

Yes

CI type

["github-actions"]

PR gated

Yes

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL-3 + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

20

First release

2016-10-17

Latest release

2026-04-28

Avg cadence

182 days

Cold removal rate

Dep drift

13

LOC over versions

v3.4: 4,846 LOCv3.5: 5,195 LOCv3.6: 7,356 LOCv3.7: 7,590 LOCv3.8: 7,590 LOCv3.9: 16,205 LOCv3.10: 17,731 LOCv3.11: 19,724 LOCv3.12: 20,307 LOCv3.13: 20,307 LOCv3.14: 19,736 LOCv3.15: 19,776 LOCv3.16: 19,776 LOCv3.17: 19,776 LOCv3.18: 21,377 LOCv3.19: 21,396 LOCv3.20: 21,396 LOCv3.21: 21,396 LOCv3.22: 21,396 LOCv3.23: 21,488 LOC

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

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 33% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
98%
Return-value docs
100%
References docs
0%

Topics

Depended on by (1)

Bioconductor (1)

People

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("msPurity")
Lawson, T. N., Dunn, W., Edbali, O., Jankevics, A., Jones, M., Saint-Vanne, J., Viant, M., & Weber, R. (2026). msPurity: Automated Evaluation of Precursor Ion Purity for Mass Spectrometry Based Fragmentation in Metabolomics (Version 1.38.0) [Computer software]. https://bioconductor.org/packages/msPurity

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 msPurity version 1.38.0 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, 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