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

CelLink.metrics.uniFOSCTTM

CelLink.metrics.uniFOSCTTM(m1_embedding, m2_embedding, true_matches_for_m2)[source]

Calculate the proportion of samples closer than the true paired sample (uniFOSCTTM).

Parameters:
  • m1_embedding (np.ndarray of shape (n, d)) – Embedding of modality 1.

  • m2_embedding (np.ndarray of shape (n, d)) – Embedding of modality 2.

  • true_matches_for_m2 (array-like of length n) – Indices of the true matched cells in modality 1 for each cell in modality 2.

Returns:

float – The uniFOSCTTM score (rounded to 4 decimals).

Previous Next

© Copyright Xin Luo.

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