dynamo.pd.rank_perturbation_cell_clusters

dynamo.pd.rank_perturbation_cell_clusters(adata, pkey='j_delta_x_perturbation', prefix_store='rank', **kwargs)[source]

Rank cells based on their raw and absolute perturbation for each cell group.

Parameters
  • adata (AnnData) – AnnData object that contains the gene-wise velocities.

  • pkey (str (default: 'perturbation_vector')) – The perturbation key.

  • prefix_store (str (default: 'rank')) – The prefix added to the key for storing the returned in adata.

  • kwargs – Keyword arguments passed to vf.rank_cells.

Returns

adata – AnnData object which has the rank dictionary for perturbation effects in .uns.

Return type

AnnData