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

CelLink.metrics.calculate_graph_connectivity

CelLink.metrics.calculate_graph_connectivity(data, labels, k=15)[source]

Calculate the Graph Connectivity for each cell type in the dataset.

Parameters:
  • data (np.ndarray of shape (n_samples, n_features)) – The dataset where rows are samples and columns are features.

  • labels (array-like of shape (n_samples,)) – The cell type labels for each sample.

  • k (int, default=15) – Number of nearest neighbors to consider for each cell.

Returns:

float – The graph connectivity score averaged across cell types.

Previous Next

© Copyright Xin Luo.

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