nirspipe.qc.figures.common.topomap

nirspipe.qc.figures.common.topomap#

Channel-wise scalp maps of the evoked response, drawn as coloured source-detector paths.

Each channel is painted along the path between its own source and detector, so the map shows what was measured and nothing else. An interpolated map (MNE’s plot_topomap) would fill the scalp between channels with a field the optodes did not measure.

Short channels get their own row on the same colour scale as the long ones, so a scalp response shows as a short row as strongly coloured as the long row above it.

Module Contents#

Functions#

evoked_channel_map_figure

Evoked response per channel, one head per condition, with a time slider.

Data#

API#

nirspipe.qc.figures.common.topomap.logger = 'get_logger(...)'#
nirspipe.qc.figures.common.topomap.evoked_channel_map_figure(raw_haemo: mne.io.Raw, epoch_tmin: float = -5.0, epoch_tmax: float = 25.0, sep_bands=None) → plotly.graph_objects.Figure | None#

Evoked response per channel, one head per condition, with a time slider.

Rows are chromophore x separation (HbO long, HbO short, HbR long, HbR short), columns are conditions, and the slider steps the whole grid from onset to the epoch window’s end, a second at a time up to 30 s and in coarser whole seconds past it, so a block design’s response is followed to its end. Long and short share a colour scale within a chromophore.

sep_bands is this run’s separations from separation_bands(); every caller in one run has to pass the same value or the rows would describe a different montage than the regression used. None takes the package defaults.

None when the run has no events, no usable optode positions, or no channel in either separation band.