A integrated function for run DEseq2 in a counts data and return results files.
deg_DESeq2(
counts_data,
group_list,
parallel = F,
test_group,
control_group,
qc = TRUE,
x,
y,
dir = ".",
prefix = "2-DEG_DEseq2"
)
a counts data frame of rows in genes and columns in samples
a list ordered by samples in counts_data
if FALSE, no parallelization. if TRUE, parallel execution using BiocParallel
the name of the numerator level for the fold change (Test group)
the name of the denominator level for the fold change (Control group)
qc plots
which column is log FC
which column is P value
a directory to store results
a prefix of file names in this step
a directory contains figures and csv files and a deg data frame
if (FALSE) {
deg_DESeq2(counts_input,group_list,
test_group = "T", control_group = "C", qc = TRUE,
x = "log2FoldChange", y = "pvalue",
dir = tempdir(), prefix = "2-DEG_DEseq2")
}