A ggpubr figure of ggplot objects showing batch-factor associations and
placed in container$plots$num_batch_factors slot
Arguments
container
environment Project container that stores sub-containers
for each cell type as well as results and plots from all analyses
donor_ranks_test
numeric The number of donor rank values to test
gene_ranks
numeric The number of gene ranks to use throughout
batch_var
character The name of the batch meta variable
thresh
numeric The threshold r-squared cutoff for considering a
factor to be a batch factor. Can be a vector of multiple values to get plots
at varying thresholds. (default=0.5)
tucker_type
character Set to 'regular' to run regular tucker or to 'sparse' to run tucker
with sparsity constraints (default='regular')
rotation_type
character Set to 'hybrid' to optimize loadings via our hybrid
method (see paper for details). Set to 'ica_dsc' to perform ICA rotation
on resulting donor factor matrix. Set to 'ica_lds' to optimize loadings by the
ICA rotation. (default='hybrid')