Description Usage Arguments Details Value Author(s)
View source: R/GEX_wrapLimma.R
Differential Gene expression analysis for multiple group comparisons incl. output of Venn diagrams, volcano plots and heatmaps.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | wrapLimma(
data,
comparisons,
p.value.threshold = 0.05,
adjust.method = "BH",
FC.threshold = log2(1.5),
projectfolder = file.path("GEX/limma"),
projectname = "",
matchvar = NULL,
Symbol.column = "SYMBOL",
sampleColumn = "Sample_Name",
groupColumn = "Sample_Group",
useWeights = TRUE,
geneAnno2keep = NULL,
venn_comparisons = NULL,
maxHM = 50,
scale = c("none"),
HMcexRow = 1.1,
HMcexCol = 1.1,
figure.res = 300,
HMincludeRelevantSamplesOnly = TRUE,
color.palette = "heat.colors",
FC.heatmap.comparisons = NULL,
FC.heatmap.geneselection = c("allprobes", "intersect", "union")
)
|
data |
ExpressionSet, SummarizedExperiment, DESeqDataSet or MethylSet. |
comparisons |
character vector with group comparisons in format |
p.value.threshold |
numeric p-value threshold |
adjust.method |
adjustment method for multiple testing ( |
FC.threshold |
numeric foldchange threshold. If data is log2-transformed, mind to transform threshold, too. |
projectfolder |
character with directory for output files (will be generated if not exisiting). |
projectname |
optional character prefix for output file names. |
matchvar |
(character) if paired design, name of column to be used to group samples. |
Symbol.column |
character with column name of Gene Symbols in |
sampleColumn |
character with column name of Sample names in |
groupColumn |
character with column name of group names in |
useWeights |
(boolean) if |
geneAnno2keep |
(character vector) annotation columns in feature data to keep in output |
venn_comparisons |
character vector or (named) list of character vectors with group comparisons to be included
in Venn Diagram (max 5 comparisons per Venn diagramm). Must be subset of |
maxHM |
(numeric) max number of top diff. regulated elements printed in Heatmap |
scale |
character indicating if the values should be centered and scaled in either the row direction
or the column direction, or none (default). Either |
HMcexRow |
labelsize for rownames in Heatmap |
HMcexCol |
labelsize for colnames in Heatmap |
figure.res |
numeric resolution for png. |
HMincludeRelevantSamplesOnly |
(boolean) if |
color.palette |
select color palette for heatmaps |
FC.heatmap.comparisons |
character vector or (named) list of character vectors with group comparsions to be
included in foldchange heatmaps. One FC heatmap is generated for each character vector.
If |
FC.heatmap.geneselection |
character vector containing elements of |
Function generates design matrix, fit and differential expression results for dedicated
group comparisons of the input object. Analysis is performed either for one group comparison
in paired design or for any number of unpaired group comparisons. The group designations in
the groupColumn
must match the contrasts given in comparisons
("groupA-groupB"
).
P-value and foldchange thresholds may be applied to filter result data.
Volcano plots are generated for each group comparison given in comparisons
with highligted
significance thresholds.
Heatmaps with sample signal intensities are generated for top differentially expressed genes for each
group comparison. Additionally heatmaps indicating foldchanges can be generated
for each set of group comparisons given in FC.heatmap.comparisons
. Selection of probes with respect
to these group comparisons is characterised in FC.heatmap.geneselection
. If the resulting number
of probes exceeds maxHM
, probes are prioritized by either F-Test p-value or by minimum p-value of
selected group comparisons.
List of 2 elements
DEgenes list of dataframes with differential expressed genes according to significance thresholds for each comparison (sorted by p-value). List elements are named by the respective group comparison.
DEgenes.unfilt list of dataframes with unfiltered differential expression data for each comparison (sorted by p-value).
An F-Test and a Venn Diagramm of all comparisons as well as filtered and unfiltered result tables, heatmaps and volcano plots for each group comparison are stored as side-effects in the project folder.
Frank Ruehle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.