Skip to content

Commit

Permalink
ci(dry-run): Set up dry run to use latest version of R and bioc + fix…
Browse files Browse the repository at this point in the history
… volcano plots (#124)

* ci(dry-run): Set up bioc version to use latest version of R and bioc

* fix(groupComparisonPlots): Fix volcano plot regarding logFC base
  • Loading branch information
tonywu1999 authored May 24, 2024
1 parent 1d9e1ed commit 9f1caa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dry-run-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup R and Bioconductor
uses: grimbough/bioc-actions/setup-bioc@v1
with:
bioc-version: release
bioc-version: devel
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
- name: Build, Install, Check
Expand Down
6 changes: 3 additions & 3 deletions R/utils_groupcomparison_plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ colMin <- function(data) sapply(data, min, na.rm = TRUE)
limits = c(y.limdown, y.limup)) +
labs(title = unique(label_name))
plot = plot +
scale_x_continuous(paste0("Log", log_base_pval, " fold change"),
scale_x_continuous(paste0("Log", log_base_FC, " fold change"),
limits = c(-x.lim, x.lim))
if (ProteinName) {
if (!(length(unique(input$colgroup)) == 1 & any(unique(input$colgroup) == "black"))) {
Expand Down Expand Up @@ -237,12 +237,12 @@ colMin <- function(data) sapply(data, min, na.rm = TRUE)
}
if (is.numeric(FCcutoff)) {
FCcutpos = data.table::setnames(data.table("sigline",
log(FCcutoff, log_base_pval),
log(FCcutoff, log_base_FC),
seq(y.limdown, y.limup, length.out = 10),
"dotted"),
c("Protein", "logFC", log_adjp, "line"))
FCcutneg = data.table::setnames(data.table("sigline",
(-log(FCcutoff, log_base_pval)),
(-log(FCcutoff, log_base_FC)),
seq(y.limdown, y.limup, length.out = 10),
"dotted"),
c("Protein", "logFC", log_adjp, "line"))
Expand Down

0 comments on commit 9f1caa8

Please sign in to comment.