mantispy.metrics.pc_regression

Contents

mantispy.metrics.pc_regression#

mantispy.metrics.pc_regression(adata, key, use_rep='X_pca', n_comps=None)[source]#

Variance-weighted R^2 of the principal components on key.

The value is the share of total variance the covariate explains, so for a batch key lower is better.

Return type:

DataFrame