AFQ.definitions.mapping

Module Contents

Classes

FnirtMap

Use an existing FNIRT map. Expects a warp file

SynMap

Calculate a Syn registration for each subject/session

SlrMap

Calculate a SLR registration for each subject/session

AffMap

Calculate an affine registration for each subject/session

class AFQ.definitions.mapping.FnirtMap(warp_suffix, space_suffix, warp_filters={}, space_filters={})[source]

Bases: AFQ.definitions.utils.Definition

Use an existing FNIRT map. Expects a warp file and an image file for each subject / session; image file is used as src space for warp.

Parameters
warp_suffixstr

suffix to pass to bids_layout.get() to identify the warp file.

space_suffixstr

suffix to pass to bids_layout.get() to identify the space file.

warp_filtersstr

Additional filters to pass to bids_layout.get() to identify the warp file. Default: {}

space_filtersstr

Additional filters to pass to bids_layout.get() to identify the space file. Default: {}

Examples

fnirt_map = FnirtMap(

“warp”, “MNI”, {“scope”: “TBSS”}, {“scope”: “TBSS”})

api.AFQ(mapping=fnirt_map)

find_path(self, bids_layout, from_path, subject, session)[source]
get_for_subses(self, subses_dict, reg_subject, reg_template)[source]
class AFQ.definitions.mapping.SynMap(use_prealign=True, affine_kwargs={}, syn_kwargs={})[source]

Bases: GeneratedMapMixin, AFQ.definitions.utils.Definition

Calculate a Syn registration for each subject/session using reg_subject and reg_template.

Parameters
use_prealignbool

Whether to perform a linear pre-registration. Default: True

affine_kwargsdictionary, optional

Parameters to pass to affine_registration in dipy.align, which does the linear pre-alignment. Only used if use_prealign is True. Default: {}

syn_kwargsdictionary, optional

Parameters to pass to syn_registration in dipy.align, which does the SyN alignment. Default: {}

Examples
——–
api.AFQ(mapping=SynMap())
find_path(self, bids_layout, from_path, subject, session)[source]
gen_mapping(self, subses_dict, reg_subject, reg_template, subject_sls, template_sls, reg_prealign)[source]
class AFQ.definitions.mapping.SlrMap(slr_kwargs={})[source]

Bases: GeneratedMapMixin, AFQ.definitions.utils.Definition

Calculate a SLR registration for each subject/session using reg_subject and reg_template.

slr_kwargsdictionary, optional

Parameters to pass to whole_brain_slr in dipy, which does the SLR alignment. Default: {}

Examples

api.AFQ(mapping=SlrMap())

find_path(self, bids_layout, from_path, subject, session)[source]
gen_mapping(self, subses_dict, reg_template, reg_subject, subject_sls, template_sls, reg_prealign)[source]
class AFQ.definitions.mapping.AffMap(affine_kwargs={})[source]

Bases: GeneratedMapMixin, AFQ.definitions.utils.Definition

Calculate an affine registration for each subject/session using reg_subject and reg_template.

affine_kwargsdictionary, optional

Parameters to pass to affine_registration in dipy.align, which does the linear pre-alignment. Default: {}

Examples

api.AFQ(mapping=AffMap())

find_path(self, bids_layout, from_path, subject, session)[source]
gen_mapping(self, subses_dict, reg_subject, reg_template, subject_sls, template_sls, reg_prealign)[source]