Skip to content

Commit

Permalink
Merge pull request #107 from rformassspectrometry/phili
Browse files Browse the repository at this point in the history
Fix: keep structure if only one adduct
  • Loading branch information
jorainer authored Oct 18, 2023
2 parents 43689ab + 35c5fb1 commit 7a08337
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 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.7
Version: 1.5.8
Description:
High level functions to assist in annotation of (metabolomics) data sets.
These include functions to perform simple tentative annotations based on
Expand Down
10 changes: 8 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# MetaboAnnotation 1.5

## Changes in 1.5.8

- Fix `.randomize_grouping` to prevent collapsing of matrix when input in a
single column

## Changes in 1.5.7

- Add function `.group_standards_iteration` and `.randomize_grouping` to allow iteration through matrix
of standards and group them if they are dissimilar enough.
- Add function `.group_standards_iteration` and `.randomize_grouping` to allow
iteration through matrix of standards and group them if they are dissimilar
enough.

## Changes in 1.5.6

Expand Down
6 changes: 3 additions & 3 deletions R/group_standards.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@
min_nstd)) {

i <- i +1
x <- x[sample(n), ]
x <- x[sample(n), , drop = FALSE]
standard_groups <- .group_standards_iteration(x,
max_nstd = max_nstd,
min_diff = min_diff)
if (i > n*n)
stop("all combination were tested, no possibility to fit your input requirement")
stop("all combination were tested, no possibility to fit your input requirements")
}
standard_groups
}
}
4 changes: 2 additions & 2 deletions man/matchValues.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7a08337

Please sign in to comment.