The function provides a useful plot for evaluating the number of CCs to
proceed with in the Seurat alignment workflow. Here we look at the biweight
midcorrelation (bicor) of the Xth gene ranked by minimum bicor across the
specified CCs for each group in the grouping.var. For alignment of more than
two groups, we average the bicor results for the reference group across the
pairwise alignments.
Optionally provide data.frame returned by function to avoid
recalculation
grouping.var
Grouping variable specified in alignment procedure
dims.eval
dimensions to evalutate the bicor for
gene.num
Xth gene to look at bicor for
num.possible.genes
Number of possible genes to search when choosing
genes for the metagene. Set to 2000 by default. Lowering will decrease runtime
but may result in metagenes constructed on fewer than num.genes genes.