Skip to content

Commit

Permalink
refactor: import extractByIndex from ProtGenerics
Browse files Browse the repository at this point in the history
  • Loading branch information
jorainer committed Dec 18, 2024
1 parent d37f0f6 commit 6bcbc94
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: Spectra
Title: Spectra Infrastructure for Mass Spectrometry Data
Version: 1.17.3
Version: 1.17.4
Description: The Spectra package defines an efficient infrastructure
for storing and handling mass spectrometry spectra and functionality to
subset, process, visualize and compare spectra data. It provides different
Expand Down Expand Up @@ -42,7 +42,7 @@ Depends:
S4Vectors,
BiocParallel
Imports:
ProtGenerics (>= 1.37.1),
ProtGenerics (>= 1.39.1),
methods,
IRanges,
MsCoreUtils (>= 1.7.5),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ importMethodsFrom(ProtGenerics,compareSpectra)
importMethodsFrom(ProtGenerics,dataOrigin)
importMethodsFrom(ProtGenerics,dataStorage)
importMethodsFrom(ProtGenerics,estimatePrecursorIntensity)
importMethodsFrom(ProtGenerics,extractByIndex)
importMethodsFrom(ProtGenerics,filterAcquisitionNum)
importMethodsFrom(ProtGenerics,filterDataOrigin)
importMethodsFrom(ProtGenerics,filterDataStorage)
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Spectra 1.17

## Change in 1.17.4

- Import `extractByIndex()` from *ProtGenerics*.

## Change in 1.17.3

- Fix `cbind2()` unit test for backends that fails if the number of spectra in
Expand Down
2 changes: 0 additions & 2 deletions R/AllGenerics.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ setGeneric("entropy", function(object, ...)
standardGeneric("entropy"))
setGeneric("export", function(object, ...)
standardGeneric("export"))
setGeneric("extractByIndex", function(object, i)
standardGeneric("extractByIndex"))
setGeneric("filterFourierTransformArtefacts", function(object, ...)
standardGeneric("filterFourierTransformArtefacts"))
setGeneric("neutralLoss", function(object, param, ...)
Expand Down
2 changes: 2 additions & 0 deletions R/MsBackend.R
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,8 @@ setMethod("dropNaSpectraVariables", "MsBackend", function(object) {
#'
#' @importFrom methods existsMethod
#'
#' @importMethodsFrom ProtGenerics extractByIndex
#'
#' @export
setMethod("extractByIndex", c("MsBackend", "ANY"), function(object, i) {
if (existsMethod("[", class(object)[1L]))
Expand Down

0 comments on commit 6bcbc94

Please sign in to comment.