tedana.io.load_data
- load_data(data, n_echos=None, dummy_scans=0)[source]
Coerce input data files to required 3D array output.
- Parameters:
data (
listof img_like,listofstr,str, or img_like) – A list of echo-wise img objects or paths to files. Single img objects or filenames are allowed as well, to support z-concatenated data.n_echos (
int, optional) – Number of echos in provided data array. Only necessary if data is a single, z-concatenated file. Default: Nonedummy_scans (
int, optional) – Number of dummy scans in the fMRI time series. Default: 0
- Returns:
fdata ((S x E x T)
numpy.ndarray) – Output data where S is samples, E is echos, and T is time. If dummy_scans is not 0, then those initial volumes are not returned with fdataref_img (img_like) – Reference image object for saving output files.