Skip to content

msPurity

Bioc current

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

v1.38.0 · Package record · 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.

Advisories

None published for Bioconductor

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,466

Files

160

Compiled share

0%

Has compiled src

No

Language breakdown

R 10,450 (48.7%)Tests 2,051 (9.6%)Docs 2,776 (12.9%)Vignettes 6,189 (28.8%)

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

Has tests

Yes

Test-to-code ratio

0.20

testthat edition

–

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,596 LOCv3.5: 4,945 LOCv3.6: 7,084 LOCv3.7: 7,564 LOCv3.8: 7,564 LOCv3.9: 16,179 LOCv3.10: 17,705 LOCv3.11: 19,702 LOCv3.12: 20,285 LOCv3.13: 20,285 LOCv3.14: 19,714 LOCv3.15: 19,754 LOCv3.16: 19,754 LOCv3.17: 19,754 LOCv3.18: 21,355 LOCv3.19: 21,374 LOCv3.20: 21,374 LOCv3.21: 21,374 LOCv3.22: 21,374 LOCv3.23: 21,466 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
READMENoVignettesYes · 3 · dynamicNEWSYes · 33% structuredCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
39 (1 internal)includes a package overview page
Examples that run
97%32 run in a plain check · 1 hold no code
Exported functions with examples
100%
Documented parameters
98%
Return-value docs
100%
Help pages citing references
0%

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/computational-metabolomics/mspurity 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

Coverage (1)
Coverage reporting
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Datasets

Topics

Maintainer
Thomas N. Lawson

Available on

CRANr2uBioconductorautoCRANCOPR

Suggested by (1)

People

Cite

Cite this package

Run in R for the authors' entry:

citation("msPurity")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.1021/acs.analchem.6b04358.

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-10-22. https://doi.org/10.5281/zenodo.21843040

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