Skip to content

Commit

Permalink
fix: ensure dropFeatureDefinitions correctly subsets chrom peaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jorainer committed May 8, 2024
1 parent b4281ab commit fc948bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
- Support excluding samples or sample groups from defining features with
*PeakDensity* correspondence analysis (issue #742).
- Add `plotPrecursorIons()` function.
- Fix in `dropFeatureDefinitions()` that was not correctly removing additional
metadata from gap-filled chromatographic peaks.


# xcms 4.1
Expand Down
5 changes: 2 additions & 3 deletions R/XcmsExperiment.R
Original file line number Diff line number Diff line change
Expand Up @@ -1556,9 +1556,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 fc948bf

Please sign in to comment.