Skip to content

Commit

Permalink
Merge pull request #673 from sneumann/jomain
Browse files Browse the repository at this point in the history
fix: fix for issue #511
  • Loading branch information
sneumann committed Apr 20, 2023
2 parents d09cbf3 + 2cf295a commit 32ccff8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
matrix:
config:
- { os: ubuntu-latest, r: 'devel', bioc: '3.17', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: 'devel', bioc: '3.17'}
- { os: windows-latest, r: 'devel', bioc: '3.17'}
- { os: macOS-latest, r: 'next', bioc: '3.17'}
- { os: windows-latest, r: 'next', bioc: '3.17'}
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: 3.21.4
Version: 3.21.5
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
6 changes: 4 additions & 2 deletions R/methods-XCMSnExp.R
Original file line number Diff line number Diff line change
Expand Up @@ -2478,6 +2478,8 @@ setMethod(
smpls <- factor(pks[, "sample"], levels = lvls)
pks <- split.data.frame(pks, smpls)
pkd <- split.data.frame(pkd, smpls)
mz <- matrix(mz, ncol = 2)
rt <- matrix(rt, ncol = 2)
}
res <- as(res, "XChromatograms")
res@.Data <- matrix(
Expand All @@ -2492,8 +2494,8 @@ setMethod(
## Loop through each EIC "row" to ensure all features in
## that EIC are retained.
fts <- lapply(seq_len(nrow(res)), function(r) {
fdev <- featureDefinitions(object, mz = mz(res)[r, ],
rt = rt)
fdev <- featureDefinitions(object, mz = mz[r, ],
rt = rt[r, ])
if (nrow(fdev)) {
fdev$row <- r
.subset_features_on_chrom_peaks(
Expand Down
5 changes: 5 additions & 0 deletions inst/NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Changes in version 3.21.5
---------------------

- Fix issue in `chromatogram` after filtering a result object (issue #511).

Changes in version 3.21.4
---------------------

Expand Down

0 comments on commit 32ccff8

Please sign in to comment.