mantispy.metrics.pc_regression#
- mantispy.metrics.pc_regression(adata, key, use_rep='X_pca', n_comps=None)#
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.
- Parameters:
- Return type:
- Returns:
A one-row tidy frame holding
pc_regression.- Raises:
KeyError –
obsmholds nothing underuse_rep.