hipsta.run_hipsta¶
- hipsta.run_hipsta(filename, hemi, lut, outputdir, **kwargs)¶
Run the hippocampal shape and thickness analysis
- Parameters:
- filename
Filename of a segmentation file.
- hemi
Hemisphere. Either ‘lh’ or ‘rh’.
- lut
Look-up table: a text file with numeric and verbal segmentation labels. ‘freesurfer’, ‘ashs-penn_abc_3t_t2’ and ‘ashs-umcutrecht_7t’ are keywords for built-in tables.
- outputdir
Directory where the results will be written.
- no_cleanup
optional Keep files that may be useful for diagnostic or debugging purposes, but are not necessary otherwise. Default: False
- no_crop
optional Do not crop image. Default: False.
- upsample
optional Upsample to the smallest voxel edge length. Default: False
- upsample_size
optional Upsampling factors. Should be between 0 and 1. If all zeros, upsample to the smallest voxel edge length. Default: [0, 0, 0]
- no_merge_molecular_layer
optional Do not merge molecular layer (only applicable for FreeSurfer segmentations). Default: False
- automask_head
optional Automated boundary detection for hippocampal head. Default: False
- automask_tail
optional Automated boundary detection for hippocampal tail. Default: False
- automask_head_margin
optional Margin for automated boundary detection for hippocampal head. Default: 0
- automask_tail_margin
optional Margin for automated boundary detection for hippocampal tail. Default: 0
- no_gauss_filter
optional Do not apply gaussian filter. Default: False
- gauss_filter_size
optional Filter width and threshold for gaussian filtering. Default: [1, 50]
- long_filter
optional Apply filter along longitudinal axis, i.e. attempt to create smooth transitions between slices. Default: False
- long_filter_size
optional Size of longitudinal filter. Default: 5
- no_close_mask
optional Do not apply closing operation to mask, i.e. do not attempt to close small holes. Default: False
- mca
optional Type of marching-cube algorithm. Either ‘mri_mc’ or ‘skimage’. Default: ‘mri_mc’
- remesh
optional Apply remeshing operation to surface, i.e. create a regular, evenly spaced surface grid. Default: False
- smooth
optional Mesh smoothing iterations. Default: 5
- cut_range
optional Range for tetrahedral boundary cutting. Default: [-0.975, 0.975]
- aniso_alpha
optional Anisotropy parameter(s). Can be one or two numbers. Default: [40]
- aniso_smooth
optional Anisotropy smoothing iterations parameter. Default: 3
- thickness_grid
optional Extent and resolution of the grid used for thickness computation; three lists of three numbers: negative extent of x axis, positive extent of x axis, resolution on x axis. Repeat for the y and z axes. Default: [ -0.9, 0.9, 41, -0.975, 0.975, 21, -0.9, 0.9, 11]
- mcc
optional Marching-cube connectivity. Only used for ‘mri_mc’ algorithm. Default: 1
- remesh_size
optional Target number of vertices for remeshing operation. If zero, keep original number of vertices. Default: 0
- no_check_surface
optional Do not check surface and proceed if there are holes. Default: False
- no_check_boundaries
optional Do not check boundaries and proceed if there are less / more than two continuous boundary loops. Default: False
- no_qc
optional Do not perform QC. Default: False
- allow_ragged_surfaces
Allow ragged mid-surfaces. Default: False
- allow_ragged_trias
Allow triangles for ragged mid-surfaces. Default: False
- no_orient
optional Do not orient surfaces. Default: False
- Returns:
dicta dictionary of input arguments