Skip to content

Commit

Permalink
Fix vignette problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jorainer committed Oct 3, 2023
1 parent 160e761 commit 4d4653d
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.4.2
Version: 1.4.3
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.4

## Changes in 1.4.3

- Fix `addProcessing` example in the vignette.

## Changes in 1.4.2

- Import `query` from `AnnotationHub`.
Expand Down
5 changes: 3 additions & 2 deletions vignettes/MetaboAnnotation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,11 @@ 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` need
to have (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 4d4653d

Please sign in to comment.