nirspipe.qc.figures.hyper.group_hyper_figures#

Panels for the cohort-level hyperscanning report: one mark per dyad, not per channel.

Kept apart from group_figures, whose panels are the individual cohort’s robust-z strip and boxes over a metric table. Nothing here is a z-score: a dyad is read against the share of its own recording it could use. The two modules share the report shell and the row order convention and nothing else.

Every panel takes the same rows, one dict per dyad-task, and the same order, so a dyad sits on the same line down the page and is read across the panels rather than looked up in each.

Module Contents#

Functions#

cohort_order

Dyad labels worst first, by shared usable time. The row order of every panel.

build_usable_bars

One bar per dyad, split into passing in both / one member / neither.

build_pair_field

dyad x channel pair, one dot per cell, worst column first.

build_condition_dials

The condition field on the left, the dyads it turns up as dials on the right.

Data#

API#

nirspipe.qc.figures.hyper.group_hyper_figures.logger = 'get_logger(...)'#
nirspipe.qc.figures.hyper.group_hyper_figures.N_DIALS = 6#
nirspipe.qc.figures.hyper.group_hyper_figures.cohort_order(rows: list[dict]) → list[str]#

Dyad labels worst first, by shared usable time. The row order of every panel.

nirspipe.qc.figures.hyper.group_hyper_figures.build_usable_bars(rows: list[dict], order: list[str]) → plotly.graph_objects.Figure | None#

One bar per dyad, split into passing in both / one member / neither.

The overview panel, carrying both channels and time, a cell being one channel pair in one window. The three colours are the ones the dyad’s own usable-time carpet uses.

None when no dyad carries the split.

nirspipe.qc.figures.hyper.group_hyper_figures.build_pair_field(rows: list[dict], order: list[str]) → plotly.graph_objects.Figure | None#

dyad x channel pair, one dot per cell, worst column first.

The finding no single dyad page can carry: a column pale down the whole cohort is the cap or the optode rather than the dyad. Columns are ordered by the cohort’s own mean.

None when the dyads share no pair, rather than a field whose columns are not the same pair down the page. A cohort on two montages keeps the pairs the two have in common.

nirspipe.qc.figures.hyper.group_hyper_figures.build_condition_dials(rows: list[dict], order: list[str]) → plotly.graph_objects.Figure | None#

The condition field on the left, the dyads it turns up as dials on the right.

The field is the same share cut by block, a share rather than absolute seconds.

None when no dyad carries per-condition shares.