spapros.ev.ProbesetEvaluator.plot_summary
- ProbesetEvaluator.plot_summary(set_ids='all', **plot_kwargs)
Plot heatmap of summary metrics
See our basic evaluation tutorial for descriptions of each metric.
- Parameters:
set_ids (Union[str, List[str]]) – IDs of the current probesets or “all”. Check out
ProbesetEvaluator.summary_results
for available sets.**plot_kwargs – Keyword arguments for
summary_table()
.
- Return type:
None
Example
import spapros as sp adata = sp.ut.get_processed_pbmc_data() selections = sp.se.select_reference_probesets( adata, methods=["PCA", "DE", "HVG", "random"], n=30, verbosity=0) evaluator = sp.ev.ProbesetEvaluator(adata, verbosity=0, results_dir=None) for set_id, df in selections.items(): gene_set = df[df["selection"]].index.to_list() evaluator.evaluate_probeset(gene_set, set_id=set_id) evaluator.plot_summary(set_ids=["PCA", "DE", "HVG", "random (seed=0)"])