snapatac2.pl.scrublet#

snapatac2.pl.scrublet(adata, width=800, height=400, show=True, interactive=True, out_file=None)[source]#

Plot the doublet score distribution.

Parameters
  • adata (AnnData) – Annotated data matrix.

  • width (int) – The width of the plot

  • height (int) – The height of the plot

  • show (bool) – Show the figure.

  • interactive (bool) – Whether to make interactive plot

  • out_file (str | None) – Path of the output file for saving the output image, end with ‘.svg’ or ‘.pdf’ or ‘.png’ or ‘.html’.

Returns

If show=False and out_file=None, an plotly.graph_objects.Figure will be returned, which can then be further customized using the plotly API.

Return type

‘plotly.graph_objects.Figure’ | None