CelLink
  • Installation
  • Tutorials
  • API documentation
CelLink
  • API documentation
  • CelLink.metrics
  • CelLink.metrics.average_sihouette_width
  • View page source

CelLink.metrics.average_sihouette_width

CelLink.metrics.average_sihouette_width(embedding, cell_type_label)[source]

Calculate the average silhouette score of integration performance.

Parameters:
  • embedding (np.ndarray of shape (n_samples, n_dims)) – The 2D (or low-dim) embedding array used for silhouette calculation.

  • cell_type_label (array-like of shape (n_samples,)) – The cell type labels corresponding to each embedding point.

Returns:

float – The average silhouette score (rounded to 4 decimals).

Previous Next

© Copyright Xin Luo.

Built with Sphinx using a theme provided by Read the Docs.