Skip to content

Commit

Permalink
Merge pull request #48 from aberHRML/devel
Browse files Browse the repository at this point in the history
v2.4.2
  • Loading branch information
jasenfinch authored Dec 1, 2020
2 parents fb0268d + e7f6c14 commit 71e0f9b
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: binneR
Title: Spectral Processing for High Resolution Flow Infusion Mass Spectrometry
Version: 2.4.1
Version: 2.4.2
Authors@R: person("Jasen", "Finch", email = "[email protected]", role = c("aut", "cre"))
Description: A spectral binning approach for high resolution flow infusion mass spectrometry data.
biocViews: MassSpectrometry, Metabolomics
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# binneR v2.4.2

* Bin measures are now correctly averaged across samples in [`binneR::plotCentrality()`](https://aberHRML.github.io/binneR/reference/plotCentrality.html) and [`binneR::plotPurity()`](https://aberHRML.github.io/binneR/reference/plotPurity.html).

# binneR v2.4.1

* Fixed errors in [`binneR::plotCentrality()`](https://aberHRML.github.io/binneR/reference/plotCentrality.html) and [`binneR::plotPurity()`](https://aberHRML.github.io/binneR/reference/plotPurity.html).
Expand Down
10 changes: 6 additions & 4 deletions R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,9 @@ setMethod('plotPurity',signature = 'Binalysis',function(x,histBins = 30){

pur <- x %>%
accurateData() %>%
dplyr::select(polarity,purity) %>%
mutate(polarity = as.character(polarity))
select(polarity,bin,purity) %>%
group_by(polarity,bin) %>%
summarise(purity = mean(purity),.groups = 'drop')

pur$polarity[pur$polarity == 'n'] <- 'Negative mode'
pur$polarity[pur$polarity == 'p'] <- 'Positive mode'
Expand Down Expand Up @@ -266,8 +267,9 @@ setMethod('plotCentrality',signature = 'Binalysis',function(x,histBins = 30){

pur <- x %>%
accurateData() %>%
dplyr::select(polarity,centrality) %>%
mutate(polarity = as.character(polarity))
select(polarity,bin,centrality) %>%
group_by(polarity,bin) %>%
summarise(centrality = mean(centrality),.groups = 'drop')

pur$polarity[pur$polarity == 'n'] <- 'Negative mode'
pur$polarity[pur$polarity == 'p'] <- 'Positive mode'
Expand Down
2 changes: 1 addition & 1 deletion docs/LICENSE.html

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

2 changes: 1 addition & 1 deletion docs/authors.html

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

2 changes: 1 addition & 1 deletion docs/index.html

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

10 changes: 9 additions & 1 deletion docs/news/index.html

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

2 changes: 1 addition & 1 deletion docs/reference/index.html

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

0 comments on commit 71e0f9b

Please sign in to comment.