From 0fdfc4d3d20451701582d6f5cb4d8e71b771219f Mon Sep 17 00:00:00 2001 From: jorainer Date: Thu, 7 Mar 2024 07:43:54 +0100 Subject: [PATCH] fix: import setBackend generic from ProtGenerics --- DESCRIPTION | 4 ++-- NAMESPACE | 2 +- NEWS.md | 4 ++++ R/MatchedSpectra.R | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index e4572e6..54ef0f0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: MetaboAnnotation Title: Utilities for Annotation of Metabolomics Data -Version: 1.7.3 +Version: 1.7.4 Description: High level functions to assist in annotation of (metabolomics) data sets. These include functions to perform simple tentative annotations based on @@ -70,7 +70,7 @@ BugReports: https://github.com/RforMassSpectrometry/MetaboAnnotation/issues URL: https://github.com/RforMassSpectrometry/MetaboAnnotation biocViews: Infrastructure, Metabolomics, MassSpectrometry Roxygen: list(markdown=TRUE) -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.1 Collate: 'AllClassUnions.R' 'AllGenerics.R' diff --git a/NAMESPACE b/NAMESPACE index 2544a9a..dd16d16 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -94,6 +94,7 @@ importFrom(methods,slotNames) importFrom(methods,validObject) importMethodsFrom(AnnotationHub,query) importMethodsFrom(BiocGenerics,colnames) +importMethodsFrom(ProtGenerics,setBackend) importMethodsFrom(ProtGenerics,spectraVariables) importMethodsFrom(S4Vectors,"$") importMethodsFrom(S4Vectors,cbind) @@ -110,7 +111,6 @@ importMethodsFrom(Spectra,peaksVariables) importMethodsFrom(Spectra,plotSpectraMirror) importMethodsFrom(Spectra,precursorMz) importMethodsFrom(Spectra,rtime) -importMethodsFrom(Spectra,setBackend) importMethodsFrom(Spectra,spectraData) importMethodsFrom(Spectra,spectraNames) importMethodsFrom(SummarizedExperiment,rowData) diff --git a/NEWS.md b/NEWS.md index 6cfa62e..f102ca4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,9 @@ # MetaboAnnotation 1.7 +## Changes in 1.7.4 + +- Import `setBackend()` generic from `ProtGenerics`. + ## Changes in 1.7.3 - Add `SingleMatchParam` for `filterMatches` to allow selection of (at most) a diff --git a/R/MatchedSpectra.R b/R/MatchedSpectra.R index af78673..cd374cf 100644 --- a/R/MatchedSpectra.R +++ b/R/MatchedSpectra.R @@ -421,7 +421,7 @@ setMethod("plotSpectraMirror", "MatchedSpectra", function(x, xlab = "m/z", xlab = xlab, ylab = ylab, main = main, ...) }) -#' @importMethodsFrom Spectra setBackend +#' @importMethodsFrom ProtGenerics setBackend #' #' @rdname MatchedSpectra #'