scPyviewer.export_figures#

scPyviewer.export_figures(ds, outdir, formats=('png',), genes=None, dpi=200, figsize=None, title_fontsize=11, tick_fontsize=8, label_fontsize=9, font_family=None)[source]#

Render the standard view set and write them to outdir.

Produces: embedding (by group), embedding (by top gene), multi-gene grid, violin, dot plot, composition. Returns the list of written file paths.

Parameters:
  • outdir (str) – Output directory (created if absent).

  • formats (sequence[str]) – Output formats: "png", "pdf", "svg".

  • genes (list[str], optional) – Genes to highlight. Defaults to top-ranked marker genes.

  • dpi (int) – Raster resolution.

  • figsize (tuple, optional) – Override figure size for all plots (passed to each plot_* call).

  • title_fontsize (float) – Title font size applied to all plots.

  • tick_fontsize (float) – Tick-label font size applied to all plots.

  • label_fontsize (float) – Axis-label font size applied to all plots.

  • font_family (str, optional) – Font family applied to all plots.

  • ds (Dataset)

Return type:

list