nirspipe.qc.subject.prep_raw_report

nirspipe.qc.subject.prep_raw_report#

Save the raw QC viewer as a static HTML file (no Flask needed).

Module Contents#

Functions#

build_prep_raw_report

Generate raw QC report: lightweight HTML + per-run folders with figure HTMLs + SQM JSON.

Data#

API#

nirspipe.qc.subject.prep_raw_report.logger = 'get_logger(...)'#
nirspipe.qc.subject.prep_raw_report.build_prep_raw_report(runs: list[dict], output_path: pathlib.Path, sci_threshold: float, epoch_qc: bool = False, sep_bands=None, by_condition: bool = False, roi_map: dict | None = None) → None#

Generate raw QC report: lightweight HTML + per-run folders with figure HTMLs + SQM JSON.

by_condition writes one extra report per annotated condition beside the run’s own, carrying the condition in its cond- entity. Their numbers are sliced out of the run’s windowed pass rather than measured on a cut of it. See nirspipe.qc.subject.condition_views.