max_mito

besca.pl.max_mito(adata, max_mito=0.05, annotation_type='SYMBOL', species='human', copy=False, ax=None, figsize=None)[source]

visualize maximum mitochondrial gene percentage threshold.

this function generates a knee-plot visualizing a given min_cells cutoff when given an adata object

Parameters:
  • adata (AnnData) – The annotated data matrix.

  • threshold (int | default = 0) – integer value that defines the minimum expression threshold for a gene to be defined as expressed. Default value is 1.

  • min_cells (int | default = 2) – visualize the chosen minimum number of cells that need to express a gene threshold

  • ax (axes | default = None) – pass the axes class to which your figure should be added

  • figsize ((width, height) or None | default = None) – optional parameter to define the figure size of the plot that is to be generated

Returns:

Figure is displayed

Return type:

None