mrsiprep.mrsi.resampling

MRSI resampling helpers.

Functions

resample_ref_met_to_t1w(config, subject, ...)

Resample only the reference-metabolite map into T1w space, for the registration-overview report's alignment figure.

transform_mrsi_maps(config, subject, ...[, ...])

mrsiprep.mrsi.resampling.resample_ref_met_to_t1w(config, subject, session, ref_map, mrsi_to_t1, t1_reference)[source]

Resample only the reference-metabolite map into T1w space, for the registration-overview report's alignment figure. Written under --work-dir rather than the permanent BIDS derivatives, since nothing else consumes it (full T1w-space resampling is opt-in via --output-mrsi-t1w).

Parameters:
  • subject (str)

  • session (str | None)

  • ref_map (Path)

  • mrsi_to_t1 (list[Path])

  • t1_reference (Path)

Return type:

Path

mrsiprep.mrsi.resampling.transform_mrsi_maps(config, subject, session, maps, mrsi_to_t1, t1_to_mni, t1_reference, mrsi_reference=None, crlb_maps=None, snr_map=None, linewidth_map=None)[source]
Parameters:
  • subject (str)

  • session (str | None)

  • maps (dict[str, Path])

  • mrsi_to_t1 (list[Path])

  • t1_to_mni (list[Path] | None)

  • t1_reference (Path)

  • mrsi_reference (Path | None)

  • crlb_maps (dict[str, Path] | None)

  • snr_map (Path | None)

  • linewidth_map (Path | None)

Return type:

dict[str, dict[str, Path]]