Skip to content

Commit

Permalink
set default FC threshold to 1.5 instead of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanheld committed Oct 17, 2018
1 parent 6c5858f commit e0a5051
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/RSnakeChunks/R/deg_table_postprocessing.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#' @param sort.column="none" Column to sort the result.
#' Supported: c("none", "mean", "log2FC", "pvalue", "padj").
#'
#' @param thresholds=c(padj = 0.05, FC = 2)
#' @param thresholds=c(padj = 0.05, FC = 1.5)
#'
#' Thresholds on some specific scores, used for display purpose, and to
#' add some columns to the result table, indicating if the gene passes the
Expand Down Expand Up @@ -62,7 +62,7 @@
DEGtablePostprocessing <- function(deg.table,
table.name="DEG_table",
sort.column = "none",
thresholds = c(padj = 0.05, FC = 2),
thresholds = c(padj = 0.05, FC = 1.5),
round.digits = 3,
dir.figures = NULL,
verbose = 0) {
Expand Down
4 changes: 2 additions & 2 deletions scripts/RSnakeChunks/R/deseq2_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' @param condition a vector with the condition associated to each sample. The length of this vector must equal the number of columns of the count table.
#' @param ref.condition=NULL reference condition for the differential analysis
#' @param comparison.prefix a string with the prefix for output files
#' @param thresholds=c(padj=0.05,FC=2) thresholds on adjusted p-value (padj) and fold change (FC).
#' @param thresholds=c(padj=0.05,FC=1.5) thresholds on adjusted p-value (padj) and fold change (FC).
#' The result table will include columns indicating which feature pass these thresholds.
#' See DEGtablePostprocessing() for supported thresholds.
#' @param title=comparison.prefix main title for the plots
Expand All @@ -19,7 +19,7 @@
deseq2.analysis <- function(counts,
condition,
ref.condition = NULL,
thresholds = c(padj = 0.05, FC = 2),
thresholds = c(padj = 0.05, FC = 1.5),
comparison.prefix,
title = comparison.prefix,
dir.figures = NULL,
Expand Down
4 changes: 2 additions & 2 deletions scripts/RSnakeChunks/R/edger_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @param title=comparison.prefix main title for the plots
#' @param dir.figures=NULL optional directory to save figures
#' @param norm.method="TMM" normalisation method. This parameter strongly affects the results! See edgeR documentation for a list of supported methods
#' @param thresholds=c(padj=0.05,FC=2) thresholds on adjusted p-value (padj) and fold change (FC).
#' @param thresholds=c(padj=0.05,FC=1.5) thresholds on adjusted p-value (padj) and fold change (FC).
#' The result table will include columns indicating which feature pass these thresholds.
#' See DEGtablePostprocessing() for supported thresholds.
#' @param verbose=0 level of verbosity
Expand All @@ -23,7 +23,7 @@ edger.analysis <- function(counts,
test.condition = 1,# first condition for edegR::exactTest()
ref.condition = 2, # second condition for edgeR::exactTest()
norm.method = "TMM",
thresholds = c(padj = 0.05, FC = 2),
thresholds = c(padj = 0.05, FC = 1.5),
comparison.prefix,
title = paste(sep = "_", norm.method, comparison.prefix),
dir.figures = NULL,
Expand Down

0 comments on commit e0a5051

Please sign in to comment.