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:
fnamestr or os.PathLike

Filename (and path) of a functional timeseries nifti dataset.

atlasnamestr or os.PathLike

Filename (and path) of an atlas nifti dataset.

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.