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|os.PathLike Filename (and path) of a functional timeseries nifti dataset.
- atlasname
str|os.PathLike Filename (and path) of an atlas nifti dataset.
- fname
- Returns:
numpy.ndarrayThe average parcel timeseries from the given atlas.
numpy.ndarrayThe atlas data.
- 3D
Nifti1Image The full nifti image of the atlas.