pegasus.hvfplot

pegasus.hvfplot(data, top_n=20, panel_size=(6, 4), return_fig=False, dpi=300.0)[source]

Generate highly variable feature plot. Only works for HVGs returned by highly_variable_features method with flavor=='pegasus'.

Parameters
  • data (MultimodalData, UnimodalData, or anndata.AnnData object.) – Single cell expression data.

  • top_n (int, optional, default: 20) – Number of top highly variable features to show names.

  • panel_size (Tuple[float, float], optional, default: (6, 4)) – The size (width, height) in inches of figure.

  • return_fig (bool, optional, default: False) – Return a Figure object if True; return None otherwise.

  • dpi (float, optional, default: 300.0) – The resolution in dots per inch.

Return type

Optional[Figure]

Returns

  • Figure object – A matplotlib.figure.Figure object containing the dot plot if return_fig == True

Examples

>>> pg.hvfplot(data)
>>> pg.hvfplot(data, top_n=10, dpi=150)