UNAGI.dynamic_graphs.distDistance.getSimilarity

UNAGI.dynamic_graphs.distDistance.getSimilarity(adatai, adataj, i, j)[source]

calculate the differential gene similarity between two clusters. Differentail gene similarity = (1-Jaccard index) * gene ranking difference factor

Parameters:
  • adatai (anndata) – The data of stage i

  • adataj (anndata) – The data of stage j

  • i (int) – the cluster id in stage i

  • j (int) – the cluster id in stage j

Returns:

distance (np.array) – The distance of top 100 differential gene between two clusters