nirspipe.qc.hyper.hyper_index#
Dyad-level landing page: one row per analysed window, linking to that window’s report.
Every hyperscanning figure belongs to one window of one task, so this is an index rather than a report. What it adds on top of the links is the one thing no single page can show: the conditions side by side on the number the analysis exists to produce.
It reads the tables the run already wrote rather than anything held in memory, which is
what lets it serve both orders the pipeline can be driven in. A recording preprocessed
whole gives one task with a condition column, so the rows are that task’s windows; a
tree cropped per condition first gives one task per condition and no such column, so the
rows are the tasks. Either way the page can be rebuilt for a tree produced weeks ago, and
a tree holding both is listed as what it is: the two are different analyses of the same
recording, and the kind column says which a row came from.
Module Contents#
Functions#
One row per analysed window under |
|
Render |
Data#
API#
- nirspipe.qc.hyper.hyper_index.logger = 'get_logger(...)'#
- nirspipe.qc.hyper.hyper_index.NULL_PERCENTILE = 95#
- nirspipe.qc.hyper.hyper_index.collect_rows(group_dir: pathlib.Path, group_id: str) list[dict]#
One row per analysed window under
group_dir, for the index table.A task contributes its whole-run row and then one row per condition its coherence table holds. The conditions come in the order that table lists them, which is the order the windows were found in the recording, so the rows read down the session rather than alphabetically. A group recorded per session lists each session’s tasks.
- nirspipe.qc.hyper.hyper_index.write_hyper_index(group_dir: pathlib.Path, group_id: str, subject_ids: list[str] | None = None, run_command: str = '') Path | None#
Render
group-<id>_index.htmlover the dyad’s report pages.Returns None when the dyad has no coherence table, which is what a directory holding only a raw report looks like.