fsqc.checkContrast

This module provides a function to compute the WM/GM contrast SNR.

fsqc.checkContrast.checkContrast(subjects_dir, subject)[source]

Compute the WM/GM contrast SNR.

This function computes the WM/GM contrast SNR based on the output of the pctsurfcon function.

Parameters:
subjects_dirstr

The directory containing subject data.

subjectstr

The name of the subject.

Returns:
con_lh_snrfloat

Signal-to-noise ratio (SNR) for the left hemisphere WM/GM contrast.

con_rh_snrfloat

Signal-to-noise ratio (SNR) for the right hemisphere WM/GM contrast.

Notes

It requires surf/[lr]h.w-g.pct.mgh and label/[lr]h.cortex.label. If not found, NaNs will be returned.