nigsp.blocks.nifti_to_timeseries¶
- nigsp.blocks.nifti_to_timeseries(fname, atlasname)[source]¶
Read a nifti file and returns a normalised timeseries from an atlas.
- Parameters:
- fname
str
oros.PathLike
Filename (and path) of a functional timeseries nifti dataset.
- atlasname
str
oros.PathLike
Filename (and path) of an atlas nifti dataset.
- fname
- Returns:
numpy.ndarray
The average parcel timeseries from the given atlas.
numpy.ndarray
The atlas data.
- 3D
Nifti1Image
The full nifti image of the atlas.