mantispy.pl.batch_variance

Contents

mantispy.pl.batch_variance#

mantispy.pl.batch_variance(adata, keys, use_rep='X_pca', n_comps=None, ax=None)[source]#

R^2 of each principal component on each covariate.

A covariate with high R^2 in the leading components accounts for much of the embedding’s structure.