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 aFigure
object ifTrue
; returnNone
otherwise.dpi (
float
, optional, default:300.0
) – The resolution in dots per inch.
- Returns
A
matplotlib.figure.Figure
object containing the dot plot ifreturn_fig == True
- Return type
Figure object
Examples
>>> fig = pg.rank_plot(data, dpi = 500)