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.

Changed in version 0.0.8:

  • [FIX] Remove unnecessary dimensions from output image object img_like. Now, the image object only has 3 dimensions.

New in version 0.0.4.

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:

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

Return type:

img_like or None