Skip to content

Commit

Permalink
Fix bug in calculate_treatment_enrichment
Browse files Browse the repository at this point in the history
  • Loading branch information
jpquast committed Aug 29, 2023
1 parent f7bdc24 commit 1e52f8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/calculate_treatment_enrichment.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ calculate_treatment_enrichment <- function(data,
}

# Add p-value to group name for plot
# also group to correctly calculate the total number of proteins in the next step
if (!missing(group)) {
cont_table <- cont_table %>%
dplyr::mutate(group_pval = paste0(
Expand All @@ -188,7 +189,8 @@ calculate_treatment_enrichment <- function(data,
round(.data$pval, digits = 2)

Check warning on line 189 in R/calculate_treatment_enrichment.R

View check run for this annotation

Codecov / codecov/patch

R/calculate_treatment_enrichment.R#L189

Added line #L189 was not covered by tests
),
")"
))
)) %>%
dplyr::group_by({{ group }})

Check warning on line 193 in R/calculate_treatment_enrichment.R

View check run for this annotation

Codecov / codecov/patch

R/calculate_treatment_enrichment.R#L193

Added line #L193 was not covered by tests
}

enrichment_plot <- cont_table %>%
Expand Down

0 comments on commit 1e52f8d

Please sign in to comment.