From 869fd4388144571afc8a315a59cb10e3456e96c3 Mon Sep 17 00:00:00 2001 From: jorainer Date: Tue, 3 Oct 2023 08:09:08 +0200 Subject: [PATCH] fix: bump version for the vignette fix. --- DESCRIPTION | 2 +- NEWS.md | 4 ++++ vignettes/MetaboAnnotation.Rmd | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index d8296ee..773f6bd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: MetaboAnnotation Title: Utilities for Annotation of Metabolomics Data -Version: 1.5.5 +Version: 1.5.6 Description: High level functions to assist in annotation of (metabolomics) data sets. These include functions to perform simple tentative annotations based on diff --git a/NEWS.md b/NEWS.md index b2335a9..d832ba9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,9 @@ # MetaboAnnotation 1.5 +## Changes in 1.5.6 + +- Fix issue in the vignette. Thanks @RemyDeB for the fix. + ## Changes in 1.5.5 - Update objects to the new definitions in `Spectra` version 1.11.10. diff --git a/vignettes/MetaboAnnotation.Rmd b/vignettes/MetaboAnnotation.Rmd index f186d1b..4456211 100644 --- a/vignettes/MetaboAnnotation.Rmd +++ b/vignettes/MetaboAnnotation.Rmd @@ -490,11 +490,12 @@ scaling function to both the query and target spectra and plot the spectra again afterwards (see the help for `addProcessing` in the `Spectra` package for more details on spectra data manipulations). This function will replace the absolute spectra intensities with intensities relative to the -maximum intensity of each spectrum. +maximum intensity of each spectrum. Note that functions for `addProcessing` +should include (like in the example below) the `...` parameter. ```{r} -scale_int <- function(x,...) { +scale_int <- function(x, ...) { x[, "intensity"] <- x[, "intensity"] / max(x[, "intensity"], na.rm = TRUE) x }