Skip to content

Commit

Permalink
use file index to calculate the bin list and metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
jasenfinch committed Aug 11, 2023
1 parent 5b06581 commit d676f4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/calc.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

calcBinList <- function(pks){
bins <- pks %>%
group_by(fileName,polarity,scan,bin) %>%
group_by(idx,fileName,polarity,scan,bin) %>%
summarise(intensity = sum(intensity),
.groups = 'drop') %>%
group_by(polarity,bin) %>%
Expand All @@ -16,7 +16,8 @@ calcBinMeasures <- function(pks,cls){
dp <- binnerDP()

binMeasures <- pks %>%
group_by_at(vars(all_of(c('fileName',
group_by_at(vars(all_of(c('idx',
'fileName',
cls,
'polarity',
'bin')))) %>%
Expand Down

0 comments on commit d676f4b

Please sign in to comment.