Closed
Description
It's common to extract time series averaged over a tissue class or a brain region. Such signals could be used to perform:
- global signal regression (average over the whole brain)
- white matter and CSF signal regression (averaged over voxels belonging to the same tissue class)
- graph based analysis (average over voxels belonging to the same parcel)
It would be good to have a dedicated interface to perform such signal extractions. The interface would take:
- 4D file with fMRI data
- 3D label image (with 0 denoting background) or 4D file with probability maps
- a vector of class labels (as long as there are labels in the label image or in case the label image is 4D as long as the number of volumes in the 4D file with probability maps)
The output would be a .tsv file with as many columns as there were labels and as many rows as there were timepoints in the fMRI input data.
In addition we can consider adding an extra column "global" with mean signal across all labels.
nilearn.input_data.NiftiLabelsMasker can be very useful in implementing this Interface.
- simplest case
- 4D probability maps/partial voluming input
- extra "global" column