BuildHeatmap summarizes MetaDeconfound output in a heatmap or cuneiform plot
BuildHeatmap(
metaDeconfOutput,
q_cutoff = 0.1,
d_cutoff = 0.01,
cuneiform = FALSE,
coloring = 0,
showConfounded = TRUE,
intermedData = FALSE,
featureNames = NULL,
metaVariableNames = NULL,
d_range = "full",
d_col = c("blue", "white", "red"),
keepMeta = NULL,
keepFeature = NULL,
trusted = c("OK_sd", "OK_nc", "OK_d", "AD"),
tileBordCol = "black",
reOrder = "both",
plotPartial = "Ds",
starSize = 2,
starNudge_y = 0
)ggplot2 object
output of a metadeconfound run
optional FDR-value cutoff used to remove low-significance entries from data
optional effect size cutoff used to remove low effect size entries from data
optional logical parameter, plot cuneiform instead of heatmap when cuneiform = TRUE
optional, can be 0,1,2; 0: color all tiles according to effectsize ; 1: don't color not significant tiles 2: like 1 but also don't color confounded signal tiles
optional logical parameter; set to FALSE to remove significance markers from confounded signals
only return intermediate data for plotting, default = FALSE
optional two-column-dataframe containing corresponding "human-readable" names to the "machine-readable" feature names used as row.names in metaDeconfOutput. These human readable names will be displayed in the final plot. First column: machine-readable, second column: human-readable.
optional two-column-dataframe containing corresponding "human-readable" names to the "machine-readable" metadata names used as column names in metaDeconfOutput. These human readable names will be displayed in the final plot. First column: machine-readable, second column: human-readable.
range of effect size colors shown; "full": (default) range from -1 to +1 (best for comparability between multiple plots); "fit": range reduced according to maximum and minimum effect size present in resulting plot (better color resolution for weaker effects)
set color range for effect size as c(minimum, middle, maximum), default c("red", "white", "blue")
character vector of metavariable names (corresponding to names in metaDeconfOutput), that should be shown in resulting plot, even when they have no associations passing d_cutoff and q_cutoff
character vector of metavariable names (corresponding to names in metaDeconfOutput), that should be shown in resulting plot, even when they have no associations passing d_cutoff and q_cutoff
character vector of confounding status labels to be treated as trustworthy, not-confounded signal. default = c("OK_sd", "OK_nc", "OK_d", "AD")
tile border color of heatmap tiles, default: "black"
reorder features and/or metadata? possible options: c("both", "feat", "meta", "none"), default: "both"
choose which effect site should be plotted. options: c("Ds", "partial", "partialRel, partialNorm"), default: "Ds"
size of asterisks/circles in resulting heatmap, default: 2
nudge y-axis position of asterisks/circles in resulting heatmap, default: 0
for more details and explanations please see the package vignette.
data(reduced_feature)
data(metaMatMetformin)
# \donttest{
example_output <- MetaDeconfound(featureMat = reduced_feature,
metaMat = metaMatMetformin,
logLevel = "ERROR")
plotObject <- BuildHeatmap(example_output)
alternativePlot <- BuildHeatmap(example_output, coloring = 2, showConfounded = FALSE)
# }
Run the code above in your browser using DataLab