pegasus.rank_plot

pegasus.rank_plot(data, panel_size=(6, 4), return_fig=False, dpi=300.0, **kwargs)[source]

Generate a barcode rank plot, which shows the total UMIs against barcode rank (in descending order with respect to total UMIs)

Parameters
  • data (AnnData or UnimodalData or MultimodalData object) – The main data object.

  • panel_size (tuple, optional (default: (6, 4))) – The plot size (width, height) in inches.

  • 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.

Returns

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

Return type

Figure object

Examples

>>> fig = pg.rank_plot(data, dpi = 500)