Compute the group technical effects.
Arguments
- X
Input data matrix.
- meta
Input metadata (data.frame).
- g_factor
Group variable (s).
- b_factor
Batch variable (s).
- do.scale
Whether to perform scaling.
Value
A list containing the overall GTE ($OverallTechEffects) and the GTE ($GroupTechEffects) of each subgroup under the group variable.
Examples
if (FALSE) {
# X is a normalized expression matrix with rows representing genes and columns representing cells.
# meta is a data.frame with columns containing metadata such as cell type, batch, etc.
GTE_ct <- Run.GroupTechEffects(X, meta, g_factor = "CellType", bg_factor = c("Batch", "CellType"))
}