Skip to content

Commit

Permalink
filter for sd > 0, when estimating protein variances (issue #71)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolski committed May 14, 2024
1 parent 1fc552e commit 56b8001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tidyMS_missigness_V2.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ MissingHelpers <- R6::R6Class(
pooled <- prolfqua::poolvar(impDat, self$config, method = "V1")
pooled <- dplyr::select(pooled ,-all_of(c(self$config$table$factor_keys_depth()[1],"var")))

pooled_zero <- pooled[pooled$df > 0,]
pooled_zero <- pooled[pooled$df > 0 & pooled$sd > 0,]
meandf <- pooled_zero |> summarize(
n = 1, df = 1,
sd = quantile(sd, prob = prob, na.rm = TRUE),
Expand Down

0 comments on commit 56b8001

Please sign in to comment.