scRL.GridCore.project_cluster

scRL.GridCore.project_cluster(gres, clusters=None, cluster_colors=None)[source]

Function for projecting annotations When analyzing single-cell data, it is necessary to assemble clusters of similar cells, typically based on a network of neighbors extracted from any low-dimensional embedding. As the identification of neighbors frequently relies on the Euclidean distance as a measure of closeness, we can therefore use this metric to align cluster labels to the gridded representation.

Parameters:
  • gres – Grids results

  • clusters – Annotations for cells. (Default: None)

  • cluster_colors – Colors for categorical annotation groups. (Default: None)

Return type:

None