Skip to content

Commit

Permalink
Merge pull request #745 from sneumann/fix_dropFeatureDefinitions
Browse files Browse the repository at this point in the history
fix: ensure dropFeatureDefinitions correctly drops filled peaks
  • Loading branch information
sneumann committed May 13, 2024
2 parents c84c34c + a553d8b commit 386bd40
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
fail-fast: false
matrix:
config:
- { os: ubuntu-latest, r: 'devel', bioc: 'devel', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: 'next', bioc: '3.19'}
- { os: windows-latest, r: 'next', bioc: '3.19'}
- { os: ubuntu-latest, r: '4.4', bioc: '3.19', cont: "bioconductor/bioconductor_docker:RELEASE_3_19", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: '4.4', bioc: '3.19'}
- { os: windows-latest, r: '4.4', bioc: '3.19'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: xcms
Version: 4.2.0
Version: 4.2.1
Title: LC-MS and GC-MS Data Analysis
Description: Framework for processing and visualization of chromatographically
separated and single-spectra mass spectral data. Imports from AIA/ANDI NetCDF,
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# xcms 4.2

## Changes in version 4.2.1

- Fix in `dropFeatureDefinitions()` that was not correctly removing additional
metadata from gap-filled chromatographic peaks.


# xcms 4.1

## Changes in version 4.1.13
Expand Down
5 changes: 2 additions & 3 deletions R/XcmsExperiment.R
Original file line number Diff line number Diff line change
Expand Up @@ -1553,9 +1553,8 @@ setMethod(
object@processHistory, type = .PROCSTEP.PEAK.GROUPING, num = 1L)
object@featureDefinitions <- .empty_feature_definitions()
if (.hasFilledPeaks(object)) {
object@chromPeaks <- object@chromPeaks[
!object@chromPeakData$is_filled, ,
drop = FALSE]
object <- .filter_chrom_peaks(
object, which(!.chromPeakData(object)$is_filled))
object@processHistory <- dropProcessHistoriesList(
object@processHistory, type = .PROCSTEP.PEAK.FILLING)
}
Expand Down

0 comments on commit 386bd40

Please sign in to comment.