Skip to content

Commit

Permalink
added minscore.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolski committed Jan 23, 2024
1 parent a59315d commit 09654d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion R/AnalysisConfiguration.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ R6_extract_values <- function(r6class){
}



#' Setup a tidy table compatible with a \code{\link{AnalysisConfiguration}}
#'
#' Extracts columns relevant for a configuration from a data frame
Expand Down
12 changes: 8 additions & 4 deletions R/ContrastsPlotter.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ ContrastsPlotter <- R6::R6Class(
#' @param scales default fixed \code{\link{facet_wrap}}, scales argument
volcano = function(colour,
legend = TRUE,
scales = c("fixed","free","free_x","free_y")){
scales = c("fixed","free","free_x","free_y"),
minscore = 0.0001){
if (missing(colour)) {
colour <- self$modelName
}
Expand All @@ -164,7 +165,8 @@ ContrastsPlotter <- R6::R6Class(
self$volcano_spec,
colour = colour,
legend = legend,
scales = scales )
scales = scales,
minscore = minscore)
return(fig)
},
#' @description
Expand All @@ -175,7 +177,8 @@ ContrastsPlotter <- R6::R6Class(
#' @param scales default fixed \code{\link{facet_wrap}}, scales argument
volcano_plotly = function(colour,
legend = TRUE,
scales = c("fixed","free","free_x","free_y")){
scales = c("fixed","free","free_x","free_y"),
minscore = 0.0001){
if (missing(colour)) {
colour <- self$modelName
}
Expand All @@ -185,7 +188,8 @@ ContrastsPlotter <- R6::R6Class(
colour = colour,
legend = legend,
scales = scales,
plotly = TRUE)
plotly = TRUE,
minscore = minscore)
return(res)
},
#' @description
Expand Down

0 comments on commit 09654d5

Please sign in to comment.