API Documentation¶
Pipelines¶
Full pipelines (macapype.pipelines.full_pipelines
):
SPM based:
Description: SPM based segmentation pipeline from T1w and T2w images in template space |
ANTS based:
Description: Segment T1 (using T2 for bias correction) . |
|
Description: Full pipeline to segment T1 (with no T2). |
*ANTS based (intermediate pipelines)
Description: Brain extraction with atlas-brex after debiasing |
|
Description: Segment T1 (using T2 for bias correction) and a previously computed mask with NMT Atlas and atropos segment. |
|
Description: Brain extraction with only T1 images. |
|
Description: Segment T1 from a previously computed mask. |
Data preparation (macapype.pipelines.prepare
):
Description: short data preparation (average, reorient, crop/betcrop and denoise) |
|
Description: T1 only short preparation |
|
Description: Long data preparation, T1s and T2s are averaged (by modality) and then average imgs are processed. |
|
Description: Long data preparation, each T1 and T2 is processed independantly (mapnode). |
(hidden)
Description: hidden function for sequence of preprocessing |
|
Description: hidden function for sequence of preprocessing (mapnode) |
Correct bias (macapype.pipelines.correct_bias
):
Description: Correct bias using T1 and T2 images |
|
Description: Correct bias using T1 and T2 images in a mask |
Register (macapype.pipelines.register
):
Description: Register template to anat with the script NMT_subject_align |
Brain extraction (macapype.pipelines.extract_brain
):
Description: Extract T1 brain using AtlasBrex |
|
Description: Extract T1 brain using AtlasBrex |
Segment (macapype.pipelines.segment
):
Description: Extract brain using tissues masks output by SPM's old_segment |
|
Description: Segmentation with ANTS atropos script |
Surface (macapype.pipelines.surface
):
Description: basic nii to mesh pipeline after segmentation |
|
Description: surface generation using freesurfer tools |
(hidden)
Description: Split segmentated tissus according hemisheres after removal of cortical structure |
Nodes¶
Surface (macapype.nodes.surface
):
Definition: Create a Gifti mesh from a binary Nifti image |
Segment (macapype.nodes.segment
):
Description: Wrap of antsAtroposN4.sh |
Extract brain (macapype.nodes.extract_brain
):
Description: Brain extraction using T1 and T2 images |
|
Description: Atlas based BrainExtraction |
Correct bias (macapype.nodes.correct_bias
):
Description: Bias field correction using T1w & T2w images. |
Register (macapype.nodes.register
):
Description: Iterative registration of the in-file to the ref file ( registered brain mask of the ref image is used at each iteration). |
|
Description: Align NMT subject to template (NMT 1.2) |
|
Description: Align NMT subject to template (NMT 1.3) |
Prepare (macapype.nodes.prepare
):
Description: Crop image(s) based on a brain extraction. |
Utils¶
Utils tests (macapype.utils.utils_tests
):
Load test data, template and needed scripts |