nimare.transforms.resolve_transforms

resolve_transforms(target, available_data, masker)[source]

Determine and apply the appropriate transforms to a target image type from available data.

Parameters
  • target ({‘z’, ‘p’, ‘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.