nimare.transforms.resolve_transforms

resolve_transforms(target, available_data, masker)[source]

Figure out the appropriate set of transforms for given available data to a target image type, and apply them.

Parameters
  • target ({‘z’, ‘t’, ‘beta’, ‘varcope’}) – Target image type.

  • available_data (dict) – Dictionary mapping data types to their values. Images in the dictionary are paths to files.

  • masker (nilearn Masker) – Masker used to convert images to arrays and back. Preferably, this mask should cover the full acquisition matrix (rather than an ROI), given that the calculated images will be saved and used for the full Dataset.

Returns

img_like or None – Image object with the desired data type, if it can be generated. Otherwise, None.