Skip to content

Commit 0256228

Browse files
committed
refactor: change default for keepAdjustRtime for [,XcmsExperiment
1 parent fc653ed commit 0256228

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Changes in version 4.7.2
44

5+
- Change default for `[,XcmsExperiment` and `[,XcmsExperimentHdf5`
6+
`keepAdjustedRtime` from `FALSE` to `TRUE`.
57
- Fix issue in `[,XcmsExperiment`: the subset operation did not revert the
68
retention times of chromatographic peaks with parameter `keepAdjustedRtime =
79
FALSE` (issue #801).

R/XcmsExperiment-functions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#' @noRd
7272
.subset_xcms_experiment <- function(x, i = integer(),
7373
keepChromPeaks = TRUE,
74-
keepAdjustedRtime = FALSE,
74+
keepAdjustedRtime = TRUE,
7575
keepFeatures = FALSE,
7676
ignoreHistory = FALSE,
7777
keepSampleIndex = FALSE, ...) {

R/XcmsExperiment.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
#'
4646
#' - `[`: subset an `XcmsExperiment` by **sample** (parameter `i`). Subsetting
4747
#' will by default drop correspondence results (as subsetting by samples will
48-
#' obviously affect the feature definition) and alignment results (adjusted
49-
#' retention times) while identified chromatographic peaks (for the selected
48+
#' obviously affect the feature definition) while alignment results (adjusted
49+
#' retention times) and identified chromatographic peaks (for the selected
5050
#' samples) will be retained. Which preprocessing results should be
5151
#' kept or dropped can also be configured with optional parameters
5252
#' `keepChromPeaks` (by default `TRUE`), `keepAdjustedRtime` (by default
53-
#' `FALSE`) and `keepFeatures` (by default `FALSE`).
53+
#' `TRUE`) and `keepFeatures` (by default `FALSE`).
5454
#'
5555
#' - `c()`: multiple `XcmsExperiment` objects can be combined into one using the
5656
#' `c()` function. This requires however that all the `XcmsExperiments`'

R/XcmsExperimentHdf5-functions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ toXcmsExperiment <- function(object, ...) {
173173
#' @noRd
174174
.h5_subset_xcms_experiment <- function(x, i = integer(),
175175
keepChromPeaks = TRUE,
176-
keepAdjustedRtime = FALSE,
176+
keepAdjustedRtime = TRUE,
177177
keepFeatures = FALSE,
178178
ignoreHistory = FALSE,
179179
...) {

R/XcmsExperimentHdf5.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
#'
7070
#' - `[`: subset the `XcmsExperimentHdf5` object to the specified samples.
7171
#' Parameters `keepChromPeaks` (default `TRUE`), `keepAdjustedRtime`
72-
#' (default `FALSE`) and `keepFeatures` (default `FALSE`) allow to configure
72+
#' (default `TRUE`) and `keepFeatures` (default `FALSE`) allow to configure
7373
#' whether present chromatographic peaks, alignment or correspondence results
7474
#' should be retained. This will only change information in the object (i.e.,
7575
#' the reference to the respective entries in the HDF5 file), but will

man/XcmsExperiment.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/XcmsExperimentHdf5.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)