Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/scib_metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
silhouette_batch,
silhouette_label,
bras,
spatial_mrre,
spatial_knn_overlap,
spatial_distance_correlation,
spatial_morans_i,
spatial_niche_knn_overlap,
spatial_pas,
spatial_chaos,
)
from ._settings import settings

Expand All @@ -35,6 +42,13 @@
"kbet",
"kbet_per_label",
"graph_connectivity",
"spatial_mrre",
"spatial_knn_overlap",
"spatial_distance_correlation",
"spatial_morans_i",
"spatial_niche_knn_overlap",
"spatial_pas",
"spatial_chaos",
"settings",
]

Expand Down
20 changes: 18 additions & 2 deletions src/scib_metrics/benchmark/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
from ._core import BatchCorrection, Benchmarker, BioConservation
from ._core import (
BatchCorrection,
Benchmarker,
BioConservation,
CoordinatePreservation,
DomainBoundary,
NichePreservation,
SpatialConservation,
)

__all__ = ["Benchmarker", "BioConservation", "BatchCorrection"]
__all__ = [
"Benchmarker",
"BioConservation",
"BatchCorrection",
"CoordinatePreservation",
"NichePreservation",
"DomainBoundary",
"SpatialConservation", # backward-compat alias for CoordinatePreservation
]
380 changes: 366 additions & 14 deletions src/scib_metrics/benchmark/_core.py

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions src/scib_metrics/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
from ._nmi_ari import nmi_ari_cluster_labels_kmeans, nmi_ari_cluster_labels_leiden
from ._pcr_comparison import pcr_comparison
from ._silhouette import bras, silhouette_batch, silhouette_label
from ._spatial import (
spatial_chaos,
spatial_distance_correlation,
spatial_knn_overlap,
spatial_morans_i,
spatial_mrre,
spatial_niche_knn_overlap,
spatial_pas,
)

__all__ = [
"isolated_labels",
Expand All @@ -20,4 +29,11 @@
"kbet",
"kbet_per_label",
"graph_connectivity",
"spatial_mrre",
"spatial_knn_overlap",
"spatial_distance_correlation",
"spatial_morans_i",
"spatial_niche_knn_overlap",
"spatial_pas",
"spatial_chaos",
]
Loading
Loading