.completeness_per_var

proteopy.pl.completeness_per_var(adata, axis, layer=None, zero_to_na=False, groups=None, group_by=None, xlabel_rotation=0.0, figsize=(6.0, 5.0), show=True, ax=False, save=False)

Plot a histogram of completeness per variable.

Parameters:
  • adata (AnnData) – AnnData object with proteomics annotations.

  • layer (str | None) – Name of the layer to use instead of .X. Defaults to .X.

  • zero_to_na (bool) – Treat zero entries as missing values when True.

  • groups (Union[Iterable[Any], str, None]) – Optional iterable of group labels to include.

  • group_by (str | None) – Column name in .var (axis 0) or .obs (axis 1) used to stratify completeness into groups. Triggers a boxplot when provided.

  • xlabel_rotation (float) – Rotation angle in degrees applied to x-axis tick labels.

  • figsize (tuple[float, float]) – Tuple (width, height) controlling figure size in inches.

  • show (bool) – Display the plot with plt.show() when True.

  • ax (bool) – Return the Matplotlib Axes object instead of displaying the plot.

  • save (bool | str | Path | None) – File path or truthy value to trigger fig.savefig.

  • Note – This function is a partial of completeness, with the following arguments fixed: axis=0.

Return type:

Axes | None