xcp_d.utils.ingestion module
Functions to support ingestion of non-BIDS preprocessing derivatives.
- xcp_d.utils.ingestion.copy_file(src, dst)[source]
Copy a file from source to dest.
source and dest must be file-like objects, i.e. any object with a read or write method, like for example StringIO.
- xcp_d.utils.ingestion.extract_mean_signal(mask, nifti, work_dir)[source]
Extract mean signal within mask from NIFTI.