anndict.utils.display_html_summary

anndict.utils.display_html_summary#

anndict.utils.display_html_summary(summary_dict, return_html=False)[source]#

Display separate HTML tables for each metadata category in the summary dictionary, arranging up to three tables in a row before starting a new line.

Parameters:
summary_dict

The dict containing frequency data for metadata columns.

Return type:

str

Returns:

If return_html is True, returns the HTML string. Otherwise, returns None.

Notes

Displays the results of summarize_metadata() as an HTML table.

Examples

import anndict as adt
summary_dict = adt.wrappers.summarize_metadata(adata, ['donor', 'tissue', 'donor*tissue'])
adt.wrappers.display_html_summary(summary_dict)

See also

summarize_metadata()

To generate the summary data.