View source: R/check_batch_effects.R
check_batch_effects | R Documentation |
Pairwise associations between each of the first three components of a MDS or PCA analysis and defined phenotype variables is tested using F tests in a linear model. P-values are visualized in a heatmap (called prince plot in the R package swamp).
check_batch_effects(se, res.pca, col.test = NULL, title = NULL)
se |
|
res.pca |
List. Output of |
col.test |
Character or integer vector. Column(s) in colData() with phenotype information to be tested. |
title |
Character. Title of the plot. |
List with the following components:
pval: Matrix with P-values between phenotype variables in rows and components in columns
r2: Matrix with absolute adjusted r^2 values between phenotype variables in rows and components in columns
plot: Plot with heatmaps as returned from the
ggarrange
function
data("se.gene")
res.pca = calculate_mds_pca(se = se.gene,
method = "pca")
col.test = c("Age.of.patient",
"Body.surface.area",
"Duration.of.psoriasis",
"Induration",
"Overall.erythema",
"Scaling",
"Sex",
"scan.date")
check_batch_effects(se = se.gene,
res.pca = res.pca,
col.test = col.test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.