merquaco.figures.plot_pixel_percentages

merquaco.figures.plot_pixel_percentages(transcripts_percent: float, detachment_percent: float, damage_percent: float = nan, ventricle_percent: float = nan, colormap_list: list = ['white', 'orange', 'green', 'red', 'blue'], colormap_labels: list = ['Off-tissue', 'Damage', 'Tissue', 'Lifting', 'Ventricles'], ax: Axes = None, title: str = '', out_file: str | Path = '', dpi: int = 100)

Plots proportion of ‘ideal tissue area’ for each classified category

Parameters:
  • transcripts_percent (float) – Percent of ideal tissue area classified as transcripts.

  • detachment_percent (float) – Percent of ideal tissue area classified as detachment.

  • damage_percent (float, optional) – Percent of ideal tissue area classified as damage.

  • ventricle_percent (flot, optional) – Percent of ideal tissue area classified as ventricles.

  • colormap_list (list, optional) – List of colors for plotting. Default is [“white”, “orange”, “green”, “red”, “blue”].

  • colormap_labels (list, optional) – Labels for colormap. Default is [“Off-tissue”, “Damage”, “Tissue”, “Lifting”, “Ventricles”].

  • ax (plt.Axes, optional) – Axes on which to plot. Default is None.

  • title (str, optional) – Title for plot. Default is ‘’.

  • out_file (str or Path, optional) – Path at which to save plot. Default is ‘’.

  • dpi (int, optional) – DPI value for plot. Default is 100.

Return type:

None

Raises:

ValueError – If only one of [‘damage_percent’, ‘ventricle_percent’] are passed.