scib.metrics.metrics_slim
- scib.metrics.metrics_slim(adata, adata_int, batch_key, label_key, **kwargs)
All metrics apart from kBET and LISI scores
- Biological conservation:
HVG overlap
hvg_overlap()
Cell type ASW
silhouette()
Isolated label ASW
isolated_labels()
Isolated label F1
isolated_labels()
NMI cluster/label
nmi()
ARI cluster/label
ari()
Cell cycle conservation
cell_cycle()
Trajectory conservation
trajectory_conservation()
- Batch correction:
Graph connectivity
graph_connectivity()
Batch ASW
silhouette_batch()
Principal component regression
pcr_comparison()
- Parameters:
adata – unintegrated, preprocessed anndata object
adata_int – integrated anndata object
batch_key – name of batch column in adata.obs and adata_int.obs
label_key – name of biological label (cell type) column in adata.obs and adata_int.obs
kwargs –
Parameters to pass on to
metrics()
function:embed
cluster_key
cluster_nmi
nmi_method
nmi_dir
si_metric
organism
n_isolated