campa.tl.get_clustered_cells

get_clustered_cells(mpp_datas, cl, cluster_name, num_objs=5)[source]

Get num_objs example cells for each mpp_data.

Parameters
  • mpp_datas (Mapping[str, MPPData]) – Data from which to sample and cluster cells.

  • cl (Cluster) – Clustering object to use.

  • cluster_name (str) – Name of the clustering.

  • num_objs (int) – Number of objects (cells) to sample from each mpp_data.

Return type

dictionary containing clustered cells in cluster_name and coloured cells in cluster_name_colored.