nirspipe.qc.figures.subject.nuisance_figures#

Correlations among a run’s nuisance series and with its global signals, the fNIRS counterpart of fMRIPrep’s confounds panel.

Module Contents#

Functions#

nuisance_series

The global signals and every nuisance series on haemo’s frames, the ones left out dropped.

nuisance_correlation_figure

Left the correlations among the series, right each one’s |r| with each global signal, as fMRIPrep draws them.

Data#

API#

nirspipe.qc.figures.subject.nuisance_figures.NUISANCE_PREFIXES = ('short_ch_', 'aux_', 'drift_')#
nirspipe.qc.figures.subject.nuisance_figures.MAX_SERIES = 20#
nirspipe.qc.figures.subject.nuisance_figures.GLOBAL_NAMES = None#
nirspipe.qc.figures.subject.nuisance_figures.nuisance_series(haemo: mne.io.BaseRaw, design: pandas.DataFrame | None = None, od: mne.io.BaseRaw | None = None, imu: dict | None = None, sep_bands=None) → pandas.DataFrame#

The global signals and every nuisance series on haemo’s frames, the ones left out dropped.

haemo is the series the confound regression was fitted on; design its design table, whose censored column names the frames left out (without one, frames under a BAD_ span are). The global signals are the mean of the kept long channels per chromophore. GVTD, band-passed to the motion band over od’s long channels, and the IMU traces are interpolated onto haemo’s samples.

nirspipe.qc.figures.subject.nuisance_figures.nuisance_correlation_figure(frame: pandas.DataFrame, max_series: int = MAX_SERIES) → plotly.graph_objects.Figure | None#

Left the correlations among the series, right each one’s |r| with each global signal, as fMRIPrep draws them.

The series kept are those with the largest |r| with either global signal, the global signals among them, up to max_series. The heatmap keeps them in frame’s order, one family beside the next; the bars run strongest first. None without a global signal and one series.