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

CelLink.metrics.cell_type_matching_accuracy

CelLink.metrics.cell_type_matching_accuracy(m1_source_ct, m1_predict_ct, m2_source_ct, m2_predict_ct)[source]

Calculate the cell-type prediction accuracy of cell-cell alignment.

Parameters:
  • m1_source_ct (list) – The original cell type labels of modality 1.

  • m1_predict_ct (list) – The predicted cell type labels of modality 1.

  • m2_source_ct (list) – The original cell type labels of modality 2.

  • m2_predict_ct (list) – The predicted cell type labels of modality 2.

Returns:

float – The overall cell-type prediction accuracy (rounded to 4 decimals).


© Copyright Xin Luo.

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