Skip to content

Commit 11e8011

Browse files
committed
Additional preprocessing of noisy spectra
1 parent 25df9bf commit 11e8011

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Automated update
66
* Added an option to remove ties (#134)
77
* Added some details for SIRIUS, add manual workspace addition (#132)
8+
* Additional preprocessing (reduction) of noisy spectra
89
* Docker updates (#131)
910
* Handle cases when same (feature_id, mslevel) pairs are present within an MGF (#133)
1011
* Improved documentation

R/cleanup_spectra.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#'
1111
#' @examples NULL
1212
cleanup_spectra <- function(spectra) {
13+
spectra <- spectra |>
14+
Spectra::reduceSpectra()
1315
if ("MSLEVEL" %in% colnames(spectra@backend@spectraData)) {
1416
spectra <- spectra[spectra$MSLEVEL == 2]
1517
}

0 commit comments

Comments
 (0)