Skip to content

Commit

Permalink
fix: bump version for the vignette fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorainer committed Oct 3, 2023
1 parent bd38013 commit 869fd43
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 3 additions & 2 deletions vignettes/MetaboAnnotation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 869fd43

Please sign in to comment.