dynamo.vf.rank_sensitivity_genes

dynamo.vf.rank_sensitivity_genes(adata, groups=None, skey='sensitivity_pca', abs=False, mode='full reg', exclude_diagonal=False, **kwargs)[source]

Rank genes or gene-gene interactions based on their sensitivity elements for each cell group.

Run .vf.sensitivity and set store_in_adata=True before using this function.

Parameters:
  • adata (AnnData) – AnnData object that contains the reconstructed vector field in the .uns attribute.

  • groups (Optional[str]) – Cell groups used to group the sensitivity.

  • skey (str) – The key of the stored sensitivity in .uns.

  • abs (bool) – Whether or not to take the absolute value of the Jacobian.

  • mode (str) – {‘full reg’, ‘full eff’, ‘reg’, ‘eff’, ‘int’} (default: ‘full_reg’) The mode of ranking: (1) ‘full reg’: top regulators are ranked for each effector for each cell group; (2) ‘full eff’: top effectors are ranked for each regulator for each cell group; (3) ‘reg’: top regulators in each cell group; (4) ‘eff’: top effectors in each cell group; (5) ‘int’: top effector-regulator pairs in each cell group.

  • exclude_diagonal (bool) – Whether to consider the self-regulation interactions (diagnoal of the jacobian matrix)

  • kwargs – Keyword arguments passed to ranking functions.

Return type:

DataFrame

Returns:

AnnData object which has the rank dictionary in .uns.