Aligns subspaces so that they line up across grouping variable (only implemented for case with 2 categories in grouping.var)
AlignSubspace(object, reduction.type, grouping.var, dims.align,
num.genes = 30, show.plots = FALSE)
Seurat object
reduction to align scores for
Name of the grouping variable for which to align the scores
Dims to align, default is all
Number of genes to use in construction of "metagene"
show debugging plots
Returns Seurat object with the dims aligned, stored in object@dr$reduction.type.aligned