snapatac2.pl.spectral_eigenvalues#

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

Plot the eigenvalues of spectral embedding.

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