spacr.figures.summary¶
What a finished regression found, in prose, for the console.
The output is a paragraph rather than a table: the coefficient table is already on screen and in a CSV. The paragraph states how many hypotheses were tested, how many passed and under which rule, which genes they were, whether the assay worked, and – because the calibration on real screens is routinely off in one direction or the other – whether the test was conservative or anti-conservative.
The numbers come from the same helpers the figures in
spacr.figures.panels use. A summary that recomputed them separately
would be a second implementation that could disagree with the figures beside
it, with no way for the reader to tell which one was wrong.
Functions¶
|
A paragraph describing what this coefficient table found. |
Module Contents¶
- spacr.figures.summary.summarise(frame, *, alpha: float = 0.05, effect_threshold: float | None = 'auto', max_named: int = 8) str[source]¶
A paragraph describing what this coefficient table found.
- Parameters:
frame – the coefficient table a run returned.
alpha – the level the calls were made at.
effect_threshold –
'auto'to use the control-based cut, a number to force one, orNonefor significance only.max_named – how many hits to name before saying “and N more”.
- Returns:
the summary, ready to print. Empty string when there is nothing to summarise – a caller should say so itself rather than print a paragraph about an absence.