mrsiprep.registration.t1_to_mni

T1-to-MNI registration.

Functions

compose_longitudinal_t1_to_mni(config, ...)

Compose (session -> subject template) + (template -> MNI) forward transforms.

run_t1_to_mni(config, subject, session, t1_path)

Classes

T1ToMNIResult(forward, inverse, prefix, template)

class mrsiprep.registration.t1_to_mni.T1ToMNIResult(forward: 'list[Path]', inverse: 'list[Path]', prefix: 'Path', template: 'object')[source]

Bases: object

Parameters:
  • forward (list[Path])

  • inverse (list[Path])

  • prefix (Path)

  • template (object)

forward: list[Path]
inverse: list[Path]
prefix: Path
template: object
mrsiprep.registration.t1_to_mni.compose_longitudinal_t1_to_mni(config, subject, session, template_result, t1_path, mrsi_reference=None)[source]

Compose (session -> subject template) + (template -> MNI) forward transforms.

template_result is a SubjectTemplateResult from mrsiprep.registration.subject_template.build_subject_template, already built for this subject. The composed forward list is applied in order by apply_transforms/antspyx (session-to-template transform first, then template-to-MNI), matching the existing forward-transform-list convention used everywhere else in the codebase (see registration.transforms).

Parameters:
  • subject (str)

  • session (str)

  • t1_path (Path)

  • mrsi_reference (Path | None)

Return type:

T1ToMNIResult

mrsiprep.registration.t1_to_mni.run_t1_to_mni(config, subject, session, t1_path, mrsi_reference=None)[source]
Parameters:
  • subject (str)

  • session (str | None)

  • t1_path (Path)

  • mrsi_reference (Path | None)

Return type:

T1ToMNIResult