hippunfold icon indicating copy to clipboard operation
hippunfold copied to clipboard

Patch pathlib incompatibility issue

Open Dhananjhay opened this issue 2 months ago • 0 comments

Hippunfold fails to run inside an environment with python 3.13 because of pathlib package incompatibility. It works fine with Python versions 3.11 and 3.12. It's possible the error might be stemming from snakebids. As a quick fix, this PR pins python v3.11 when creating the conda env and reduces the upper limit of python from <4.0 to <3.13.

Error:

Traceback (most recent call last):
  File "/local/scratch/test-lowresMRI-3.13/.snakemake/scripts/tmph4225s8_.dice.py", line 2, in <module>
    import sys;sys.path.extend(['/home/UWO/dbansal7/miniconda3/envs/snakebids-env/lib/python3.13/site-packages', '/local/scratch/hippunfold/hippunfold/workflow/rules', '/local/scratch/hippunfold/hippunfold/workflow', '/local/scratch/hippunfold/hippunfold', '/home/UWO/dbansal7/miniconda3/envs/snakebids-env/lib/python3.13', '/home/UWO/dbansal7/miniconda3/envs/snakebids-env/lib/python3.13/lib-dynload', '/home/UWO/dbansal7/miniconda3/envs/snakebids-env/lib/python3.13/site-packages', '/localscratch/.cache/snakemake/snakemake/source-cache/runtime-cache/tmpbs3coo2s/file/local/scratch/hippunfold/hippunfold/workflow/rules/../scripts', '/local/scratch/hippunfold/hippunfold/workflow/rules/../scripts']);import pickle;from snakemake import script;script.snakemake = pickle.loads(b'\x80\x04\x95\xb7P\x00\x00\x00\x00\x00\x00\x8c\x10snakemake.script\x94\x8c\tSnakemake\x94\x93\x94)\x81\x94}\x94(\x8c\x05input\x94\x8c\x0csnakemake.io\x94\x8c\nInputFiles\x94\x93\x94)\x81\x94(\x8c=sub-01/anat/sub-01_hemi-R_space-template_desc-f3d_mask.nii.gz\x94\x8c0/localscratch/.cache/hippunfold/template/CITI168\x94e}\x94(\x8c\x06_names\x94}\x94(\x8c\x08res_mask\x94K\x00N\x86\x94\x8c\x0ctemplate_dir\x94K\x01N\x86\x94u\x8c\x12_allowed_overrides\x94]\x94(\x8c\x05index\x94\x8c\x04sort\x94eh\x15h\x06\x8c\x0eAttributeGuard\x94\x93\x94)\x81\x94}\x94\x8c\x04name\x94h\x15sbh\x16h\x18)\x81\x94}\x94h\x1bh\x16sbh\x0fh\nh\x11h\x0bub\x8c\x06output\x94h\x06\x8c\x0bOutputFiles\x94\x93\x94)\x81\x94\x8c-sub-01/qc/sub-01_hemi-R_desc-unetf3d_dice.tsv\x94a}\x94(h\r}\x94\x8c\x04dice\x94K\x00N\x86\x94sh\x13]\x94(h\x15h\x16eh\x15h\x18)\x81\x94}\x94h\x1bh\x15sbh\x16h\x18)\x81\x94}\x94h\x1bh\x16sbh%h"ub\x8c\r_params_store\x94h\x06\x8c\x06Params\x94\x93\x94)\x81\x94(]\x94(K\x01K\x02K\x07K\x08e\x8c\x0epathlib._local\x94\x8c\tPosixPath\x94\x93\x94\x8c0/localscratch/.cache/hippunfold/template/CITI168\x94\x8c&Mask_300umCoronalOblique_hemi-R.nii.gz\x94\x86\x94R\x94e}\x94(h\r}\x94(\x8c\thipp_lbls\x94K\x00N\x86\x94\x8c\x03ref\x94K\x01N\x86\x94uh\x13]\x94(h\x15h\x16eh\x15h\x18)\x81\x94}\x94h\x1bh\x15sbh\x16h\x18)\x81\x94}\x94h\x1bh\x16sbh:h0h<h7ub\x8c\r_params_types\x94}\x94\x8c\twildcards\x94h\x06\x8c\tWildcards\x94\x93\x94)\x81\x94(\x8c\x0201\x94\x8c\x01R\x94e}\x94(h\r}\x94(\x8c\x07subject\x94K\x00N\x86\x94\x8c\x04hemi\x94K\x01N\x86\x94uh\x13]\x94(h\x15h\x16eh\x15h\x18)\x81\x94}\x94h\x1bh\x15sbh\x16h\x18)\x81\x94}\x94h\x1bh\x16sb\x8c\x07subject\x94hI\x8c\x04hemi\x94hJub\x8c\x07threads\x94K\x01\x8c\tresources\x94h\x06\x8c\tResources\x94\x93\x94)\x81\x94(K\x01K\x01\x8c\x04/tmp\x94e}\x94(h\r}\x94(\x8c\x06_cores\x94K\x00N\x86\x94\x8c\x06_nodes\x94K\x01N\x86\x94\x8c\x06tmpdir\x94K\x02N\x86\x94uh\x13]\x94(h\x15h\x16eh\x15h\x18)\x81\x94}\x94h\x1bh\x15sbh\x16h\x18)\x81\x94}\x94h\x1bh\x16sbh`K\x01hbK\x01hdh]ub\x8c\x03log\x94h\x06\x8c\x03Log\x94\x93\x94)\x81\x94}\x94(h\r}\x94h\x13]\x94(h\x15h\x16eh\x15h\x18)\x81\x94}\x94h\x1bh\x15sbh\x16h\x18)\x81\x94}\x94h\x1bh\x16sbub\x8c\x06config\x94}\x94(\x8c\x17plugins.version.version\x94\x8c\x07unknown\x94\x8c\x0fanalysis_levels\x94]\x94(\x8c\x0bparticipant\x94\x8c\x12group_create_atlas\x94\x8c\x05group\x94e\x8c\x19targets_by_analysis_level\x94}\x94(\x8c\x0bparticipant\x94]\x94\x8c\x03all\x94a\x8c\x12group_create_atlas\x94]\x94\x8c\x10all_create_atlas\x94a\x8c\x05group\x94]\x94\x8c\rall_group_tsv\x94au\x8c\rpybids_inputs\x94}\x94(\x8c\x03T2w\x94}\x94(\x8c\x07filters\x94}\x94(\x8c\x06suffix\x94\x8c\x03T2w\x94\x8c\textension\x94\x8c\x07.nii.gz\x94\x8c\x08datatype\x94\x8c\x04anat\x94u\x8c\twildcards\x94]\x94(\x8c\x07subject\x94\x8c\x07session\x94\x8c\x0bacquisition\x94\x8c\x03run\x94eu\x8c\x08hippb500\x94}\x94(\x8c\x07filters\x94}\x94(\x8c\x06suffix\x94\x8c\x04b500\x94\x8c\textension\x94\x8c\x07.nii.gz\x94\x8c\x08datatype\x94\x8c\x03dwi\x94u\x8c\twildcards\x94]\x94(\x8c\x07subject\x94\x8c\x07session\x94eu\x8c\x03T1w\x94}\x94(\x8c\x07filters\x94}\x94(\x8c\x06suffix\x94\x8c\x03T1w\x94\x8c\textension\x94\x8c\x07.nii.gz\x94\x8c\x08datatype\x94\x8c\x04anat\x94u\x8c\twildcards\x94]\x94(\x8c\x07subject\x94\x8c\x07session\x94\x8c\x0bacquisition\x94\x8c\x03run\x94eu\x8c\ndsegtissue\x94}\x94(\x8c\x07filters\x94}\x94(\x8c\x06suffix\x94\x8c\x04dseg\x94\x8c\textension\x94\x8c\x07.nii.gz\x94\x8c\x08datatype\x94\x8c\x04anat\x94\x8c\x04desc\x94\x8c\x06tissue\x94u\x8c\twildcards\x94]\x94(\x8c\x07subject\x94\x8c\x07session\x94\x8c\x04hemi\x94\x8c\x0bacquisition\x94\x8c\x03run\x94eu\x8c\rdsegsubfields\x94}\x94(\x8c\x07filters\x94}\x94(\x8c\x06suffix\x94\x8c\x04dseg\x94\x8c\textension\x94\x8c\x07.nii.gz\x94\x8c\x08datatype\x94\x8c\x04anat\x94\x8c\x04desc\x94\x8c\tsubfields\x94u\x8c\twildcards\x94]\x94(\x8c\x07subject\x94\x8c\x07session\x94\x8c\x04hemi\x94\x8c\x0bacquisition\x94\x8c\x03run\x94euu\x8c\nparse_args\x94}\x94(\x8c\n--modality\x94}\x94(\x8c\x04help\x94X\'\x01\x00\x00Type of image to run hippunfold on. For dsegtissue and be sure to match the label scheme applied in the look up table (lut) online. For best performance, please also make sure the input is approximately aligned to the template space, with separate hemi-L|R in the name(s). (default: %(default)s)\x94\x8c\x08required\x94\x88\x8c\x07choices\x94]\x94(\x8c\x03T1w\x94\x8c\x03T2w\x94\x8c\x08hippb500\x94\x8c\ndsegtissue\x94eu\x8c\n--template\x94}\x94(\x8c\x07choices\x94]\x94(\x8c\x07CITI168\x94\x8c\x04dHCP\x94\x8c\x05MBMv2\x94\x8c\x05MBMv3\x94\x8c\x04CIVM\x94\x8c\x05ABAv3\x94\x8c\x08bigbrain\x94e\x8c\x07default\x94\x8c\x07CITI168\x94\x8c\x04help\x94X\xb5\x01\x00\x00Set the template to use for registration to coronal oblique (and optionally for template-based segmentation if --use-template-seg is enabled). CITI168 is for adult human data, dHCP is for neonatal human data, MBMv2 is for ex vivo marmoset data, MBMv3 is for in vivo marmoset data, CIVM is for in vivo macaque data, and ABAv3 is for mouse data. When using a non-human template, consider using a corresponding atlas. (default: %(default)s)\x94u\x8c\x11--inject_template\x94}\x94(\x8c\x07choices\x94]\x94\x8c\x05upenn\x94a\x8c\x07default\x94\x8c\x05upenn\x94\x8c\x04help\x94\x8cCSet the template to use for shape injection. (default: %(default)s)\x94u\x8c\x12--use_template_seg\x94}\x94(\x8c\x04help\x94XL\x01\x00\x00Use template-based segmentation for hippocampal tissue *instead of* nnUnet and shape injection. This is only to be used if nnUnet models are not trained for the data you are using, e.g. for non-human primate data with the MBMv2 (ex vivo marmoset), MBMv3 (in vivo marmoset), or CIVM (ex vivo macaque) template. (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c\x1f--template_seg_smoothing_factor\x94}\x94(\x8c\x04help\x94\x8c\xc7Scales the default smoothing sigma for gradient and warp in greedy registration for template-based segmentation. Using a value higher than 1 will use result in a smoother warp. (default: %(default)s)\x94\x8c\x07default\x94G@\x00\x00\x00\x00\x00\x00\x00u\x8c\x0e--skip_preproc\x94}\x94(\x8c\x04help\x94\x8c]Set this flag if your inputs (e.g. T2w, dwi) are already pre-processed (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c\x0c--skip_coreg\x94}\x94(\x8c\x04help\x94\x8cgSet this flag if your inputs (e.g. T2w, dwi) are already registered to T1w space (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c\x1d--skip_inject_template_labels\x94}\x94(\x8c\x04help\x94\x8c\x98Set this flag to skip post-processing template injection into CNN segmentation. Note this will disable generation of DG surfaces. (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c"--inject_template_smoothing_factor\x94}\x94(\x8c\x04help\x94Xo\x01\x00\x00Scales the default smoothing sigma for gradient and warp in template shape injection. Using a value higher than 1 will use result in a smoother warp, and greater capacity to patch larger holes in segmentations. Try setting to 2 if nnunet segmentations have large holes. Note: the better solution is to re-train network on the data you are using (default: %(default)s)\x94\x8c\x07default\x94G?\xf0\x00\x00\x00\x00\x00\x00u\x8c\x14--rigid_reg_template\x94}\x94(\x8c\x04help\x94\x8cxUse rigid instead of affine for registration to template. Try this if your images are reduced FOV (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c\x11--no_reg_template\x94}\x94(\x8c\x04help\x94\x8cDUse if input data is already in space-CITI168 (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c\x11--t1_reg_template\x94}\x94(\x8c\x04help\x94\x8c\x99Use T1w to register to template space, instead of the segmentation modality. Note: this was the default behavior prior to v1.0.0.  (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c\n--crop_res\x94}\x94(\x8c\x04help\x94\x8c\xedSets the bounding box resolution for the crop original modality (e.g. cropT1w space). Under the hood, hippUnfold operates at higher resolution than the original image, so this tries to preserve some of that detail. (default: %(default)s)\x94\x8c\x07default\x94\x8c\r0.2x0.2x0.2mm\x94u\x8c\n--crop_box\x94}\x94(\x8c\x04help\x94\x8c\xe9Sets the bounding box size for the crop original modality (e.g. cropT1w space). Make this larger if your hippocampi in crop{T1w,T2w} space are getting cut-off. This must be in voxels (vox) not millimeters (mm). (default: %(default)s)\x94\x8c\x07default\x94\x8c\x0e256x256x256vox\x94u\x8c\x15--resample_dsegtissue\x94}\x94(\x8c\x04help\x94X\x92\x01\x00\x00Resample the manual segmentation (for --modality dsegtissue), keeping the bounding box the same, but changing the number of voxels in the image. This can be specified as voxels ("300x300x300"), or a percentage ("20%%") or percentage in each direction ("20x20x40%%"). Note: the segmentation will always be subsequently cropped around the segmentation, with a padding of 5 voxels.  (default: %(default)s)\x94\x8c\x07default\x94Nu\x8c\x19--laminar_coords_res_hipp\x94}\x94(\x8c\x04help\x94\x8c\xd3Set the resolution that the laminar (IO) coords will be computed with for hippocampus. This is implemented by resampling the segmentation to this resolution prior to generating the coords. (default: %(default)s)\x94\x8c\x07default\x94\x8c\r0.3x0.3x0.3mm\x94u\x8c\x1c--laminar_coords_res_dentate\x94}\x94(\x8c\x04help\x94\x8c\xd9Set the resolution that the laminar (IO) coords will be computed with for the dentate gyrus. This is implemented by resampling the segmentation to this resolution prior to generating the coords. (default: %(default)s)\x94\x8c\x07default\x94\x8c\r0.1x0.1x0.1mm\x94u\x8c\x11--no_unfolded_reg\x94}\x94(\x8c\x04help\x94\x8c\xbaDo not perform unfolded space (2D) registration based on surface metrics (e.g. thickness, curvature, and gyrification) for closer alignment to the reference atlas. (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c\x15--generate_myelin_map\x94}\x94(\x8c\x04help\x94\x8c\x9dGenerate myelin map using T1w divided by T2w, and map to surface with ribbon approach. Requires both T1w and T2w images to be present. (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c\t--use_gpu\x94}\x94(\x8c\x04help\x94\x8c`Enable gpu for inference by setting resource gpus=1 in run_inference rule (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c\x13--nnunet_enable_tta\x94}\x94(\x8c\x04help\x94\x8c\x8aEnable test-time augmentation for nnU-net inference, slows down inference by 8x, but potentially increases accuracy (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x06action\x94\x8c\nstore_true\x94u\x8c\x0f--output_spaces\x94}\x94(\x8c\x07choices\x94]\x94(\x8c\x03T1w\x94\x8c\x06corobl\x94e\x8c\x05nargs\x94\x8c\x01+\x94\x8c\x07default\x94]\x94\x8c\x04help\x94\x8c5Sets output spaces for results (default: %(default)s)\x94u\x8c\x06--hemi\x94}\x94(\x8c\x07choices\x94]\x94(\x8c\x01L\x94hJe\x8c\x07default\x94]\x94(j\x89\x01\x00\x00hJe\x8c\x05nargs\x94j\x80\x01\x00\x00\x8c\x04help\x94\x8c/Hemisphere(s) to process (default: %(default)s)\x94u\x8c\x17--laminar_coords_method\x94}\x94(\x8c\x07choices\x94]\x94(\x8c\x07laplace\x94\x8c\x07equivol\x94\x8c\x08equidist\x94e\x8c\x07default\x94\x8c\x08equidist\x94\x8c\x04help\x94\x8cxMethod to use for laminar coordinates. Equivol and equidist are from the laynii LN2_LAYERS tool.  (default: %(default)s)\x94u\x8c\x10--autotop_labels\x94}\x94(\x8c\x07choices\x94]\x94(\x8c\x04hipp\x94\x8c\x07dentate\x94e\x8c\x07default\x94]\x94(\x8c\x04hipp\x94\x8c\x07dentate\x94e\x8c\x05nargs\x94j\x80\x01\x00\x00\x8c\x04help\x94\x8cIRun hipp (CA + subiculum) alone or include dentate (default: %(default)s)\x94u\x8c\x14--force_nnunet_model\x94}\x94(\x8c\x04help\x94\x8cAForce nnunet model to use (expert option). (default: %(default)s)\x94\x8c\x07default\x94\x89\x8c\x07choices\x94]\x94(\x8c\x03T1w\x94\x8c\x03T2w\x94\x8c\x05T1T2w\x94\x8c\x05b1000\x94\x8c\x08trimodal\x94\x8c\x08hippb500\x94\x8c\nneonateT1w\x94\x8c\rsynthseg_v0.1\x94\x8c\rsynthseg_v0.2\x94\x8c\rneonateT1w_v2\x94\x8c\x0bADNI_T1w_v1\x94eu\x8c\x18--enable-bids-validation\x94}\x94(\x8c\x04help\x94\x8c\xd7Enable validation of BIDS dataset. BIDS validation would be performed\nusing the bids-validator plugin (if installed/enabled) or with the pybids\nvalidator implementation (if bids-validator is not installed/enabled).\n\x94\x8c\x04dest\x94\x8c\x16plugins.validator.skip\x94\x8c\x06action\x94\x8c\x0bstore_false\x94\x8c\x07default\x94\x88u\x8c\t--version\x94}\x94(\x8c\x04help\x94\x8c\x1fPrint the version of HippUnfold\x94\x8c\x06action\x94\x8c\x07version\x94\x8c\x07version\x94\x8c\x052.0.0\x94uu\x8c\x0eautotop_labels\x94]\x94(\x8c\x04hipp\x94\x8c\x07dentate\x94e\x8c\nsurf_types\x94}\x94(\x8c\x04hipp\x94]\x94(\x8c\x0cmidthickness\x94\x8c\x05inner\x94\x8c\x05outer\x94e\x8c\x07dentate\x94]\x94(\x8c\x0cmidthickness\x94\x8c\x05inner\x94\x8c\x05outer\x94eu\x8c\x12gifti_metric_types\x94}\x94(\x8c\x04hipp\x94]\x94(\x8c\x12gyrification.shape\x94\x8c\x0fcurvature.shape\x94\x8c\x0fthickness.shape\x94e\x8c\x07dentate\x94]\x94(\x8c\x12gyrification.shape\x94\x8c\x0fcurvature.shape\x94\x8c\x0fthickness.shape\x94eu\x8c\x12cifti_metric_types\x94}\x94(\x8c\x04hipp\x94]\x94(\x8c\x14gyrification.dscalar\x94\x8c\x11curvature.dscalar\x94\x8c\x11thickness.dscalar\x94e\x8c\x07dentate\x94]\x94(\x8c\x14gyrification.dscalar\x94\x8c\x11curvature.dscalar\x94\x8c\x11thickness.dscalar\x94eu\x8c\x0cxfm_identity\x94\x8c\x1eresources/etc/identity_xfm.txt\x94\x8c\x10xfm_identity_itk\x94\x8c"resources/etc/identity_xfm_itk.txt\x94\x8c\x0etemplate_files\x94}\x94(\x8c\x07CITI168\x94}\x94(\x8c\x03T1w\x94\x8c\x15T1w_head_700um.nii.gz\x94\x8c\x03T2w\x94\x8c\x15T2w_head_700um.nii.gz\x94\x8c\nxfm_corobl\x94\x8c\x18CoronalOblique_rigid.txt\x94\x8c\x08crop_ref\x94\x8c*T2w_300umCoronalOblique_hemi-{hemi}.nii.gz\x94\x8c\x0bcrop_refT1w\x94\x8c*T1w_300umCoronalOblique_hemi-{hemi}.nii.gz\x94\x8c\tMask_crop\x94\x8c+Mask_300umCoronalOblique_hemi-{hemi}.nii.gz\x94\x8c\x04dseg\x94\x8c?sub-CITI168_hemi-{hemi}_space-cropT1w_desc-postproc_dseg.nii.gz\x94\x8c\x06coords\x94\x8cXsub-CITI168_dir-{dir}_hemi-{hemi}_space-cropT1w_label-{label}_desc-laplace_coords.nii.gz\x94\x8c\x0ehemi_wildcards\x94]\x94(j\x89\x01\x00\x00hJeu\x8c\x04dHCP\x94}\x94(\x8c\x03T1w\x94\x8c"tpl-dHCP_cohort-1_res-1_T1w.nii.gz\x94\x8c\x03T2w\x94\x8c"tpl-dHCP_cohort-1_res-1_T2w.nii.gz\x94\x8c\nxfm_corobl\x94\x8c&tpl-dHCP_cohort-1_to-corobl_affine.txt\x94\x8c\x08crop_ref\x94\x8c;tpl-dHCP_cohort-1_res-1_space-corobl_hemi-{hemi}_T2w.nii.gz\x94\x8c\x0bcrop_refT1w\x94\x8c;tpl-dHCP_cohort-1_res-1_space-corobl_hemi-{hemi}_T1w.nii.gz\x94\x8c\tMask_crop\x94\x8cFtpl-dHCP_cohort-1_res-1_space-corobl_hemi-{hemi}_desc-hipp_mask.nii.gz\x94\x8c\x04dseg\x94\x8cCtpl-dHCP_space-corobl_hemi-{hemi}_desc-tissuedsegtissue_dseg.nii.gz\x94\x8c\x06coords\x94\x8cTtpl-dHCP_dir-{dir}_hemi-{hemi}_space-corobl_label-{label}_desc-laplace_coords.nii.gz\x94\x8c\x0ehemi_wildcards\x94]\x94(j\x89\x01\x00\x00hJeu\x8c\x05MBMv2\x94}\x94(\x8c\x03T1w\x94\x8c\x1cTemplate_sym_MTR_80um.nii.gz\x94\x8c\x03T2w\x94\x8c\x1bTemplate_sym_T2_80um.nii.gz\x94\x8c\nxfm_corobl\x94\x8c3tpl-MBMv2_from-native_to-corobl_type-itk_affine.txt\x94\x8c\x08crop_ref\x94\x8c/tpl-MBMv2_hemi-R_space-corobl_{modality}.nii.gz\x94\x8c\tMask_crop\x94\x8c3tpl-MBMv2_hemi-R_space-corobl_desc-hipp_mask.nii.gz\x94\x8c\x04dseg\x94\x8c;tpl-MBMv2_hemi-R_space-corobl_desc-tissuemanual_dseg.nii.gz\x94\x8c\x06coords\x94\x8cPtpl-MBMv2_dir-{dir}_hemi-R_space-corobl_label-{label}_desc-laplace_coords.nii.gz\x94\x8c\x0ehemi_wildcards\x94]\x94hJau\x8c\x05MBMv3\x94}\x94(\x8c\x03T1w\x94\x8c\x14tpl-MBMv3_T1w.nii.gz\x94\x8c\x03T2w\x94\x8c\x14tpl-MBMv3_T2w.nii.gz\x94\x8c\nxfm_corobl\x94\x8c3tpl-MBMv3_from-native_to-corobl_type-itk_affine.txt\x94\x8c\x08crop_ref\x94\x8c(tpl-MBMv3_hemi-R_space-corobl_T1w.nii.gz\x94\x8c\tMask_crop\x94\x8c3tpl-MBMv3_hemi-R_space-corobl_desc-hipp_mask.nii.gz\x94\x8c\x04dseg\x94\x8c;tpl-MBMv3_hemi-R_space-corobl_desc-tissuemanual_dseg.nii.gz\x94\x8c\x06coords\x94\x8cPtpl-MBMv3_dir-{dir}_hemi-R_space-corobl_label-{label}_desc-laplace_coords.nii.gz\x94\x8c\x0ehemi_wildcards\x94]\x94hJau\x8c\x04CIVM\x94}\x94(\x8c\x03T1w\x94\x8c\x13tpl-CIVM_T1w.nii.gz\x94\x8c\nxfm_corobl\x94\x8c2tpl-CIVM_from-native_to-corobl_type-itk_affine.txt\x94\x8c\x08crop_ref\x94\x8c3tpl-CIVM_hemi-{hemi}_space-corobl_{modality}.nii.gz\x94\x8c\tMask_crop\x94\x8c7tpl-CIVM_hemi-{hemi}_space-corobl_desc-hipp_mask.nii.gz\x94\x8c\x04dseg\x94\x8c?tpl-CIVM_hemi-{hemi}_space-corobl_desc-tissuemanual_dseg.nii.gz\x94\x8c\x06coords\x94\x8cTtpl-CIVM_dir-{dir}_hemi-{hemi}_space-corobl_label-{label}_desc-laplace_coords.nii.gz\x94\x8c\x0ehemi_wildcards\x94]\x94(j\x89\x01\x00\x00hJeu\x8c\x05upenn\x94}\x94(\x8c\x03T1w\x94\x8c%tpl-upenn_desc-hipptissue_dseg.nii.gz\x94\x8c\x04dseg\x94\x8c%tpl-upenn_desc-hipptissue_dseg.nii.gz\x94\x8c\x0cdseg_dentate\x94\x8c&tpl-upenn_desc-hippdentate_dseg.nii.gz\x94\x8c\x06coords\x94\x8c/tpl-upenn_dir-{dir}_label-{label}_coords.nii.gz\x94\x8c\x0ehemi_wildcards\x94]\x94hJau\x8c\x06bbhist\x94}\x94(\x8c\x03T1w\x94\x8c#sub-bbhist_hemi-{hemi}_100um.nii.gz\x94\x8c\x04dseg\x94\x8c(sub-bbhist_hemi-{hemi}_100um_dseg.nii.gz\x94\x8c\x0ehemi_wildcards\x94]\x94(j\x89\x01\x00\x00hJeu\x8c\x05ABAv3\x94}\x94(\x8c\x03T1w\x94\x8c\x14tpl-ABAv3_T1w.nii.gz\x94\x8c\nxfm_corobl\x94\x8c3tpl-ABAv3_from-native_to-corobl_type-itk_affine.txt\x94\x8c\x08crop_ref\x94\x8c-tpl-ABAv3_hemi-{hemi}_space-corobl_T1w.nii.gz\x94\x8c\tMask_crop\x94\x8c@tpl-ABAv3_hemi-{hemi}_space-corobl_desc-tissuemanual_dseg.nii.gz\x94\x8c\x04dseg\x94\x8c@tpl-ABAv3_hemi-{hemi}_space-corobl_desc-tissuemanual_dseg.nii.gz\x94\x8c\x06coords\x94\x8cUtpl-ABAv3_dir-{dir}_hemi-{hemi}_space-corobl_label-{label}_desc-laplace_coords.nii.gz\x94\x8c\x0ehemi_wildcards\x94]\x94(j\x89\x01\x00\x00hJeu\x8c\x08bigbrain\x94}\x94(\x8c\x03T1w\x94\x8c\x1etpl-bigbrain_1mm_merker.nii.gz\x94\x8c\x03T2w\x94\x8c\x1etpl-bigbrain_1mm_merker.nii.gz\x94\x8c\nxfm_corobl\x94\x8c6tpl-bigbrain_from-native_to-corobl_type-itk_affine.txt\x94\x8c\x08crop_ref\x94\x8c9tpl-bigbrain_hemi-{hemi}_space-corobl_100um_merker.nii.gz\x94\x8c\tMask_crop\x94\x8cItpl-bigbrain_hemi-{hemi}_space-corobl_desc-tissuemanual_100um_dseg.nii.gz\x94\x8c\x04dseg\x94\x8cItpl-bigbrain_hemi-{hemi}_space-corobl_desc-tissuemanual_100um_dseg.nii.gz\x94\x8c\x06coords\x94\x8cXtpl-bigbrain_dir-{dir}_hemi-{hemi}_space-corobl_label-{label}_desc-laplace_coords.nii.gz\x94\x8c\x0ehemi_wildcards\x94]\x94(j\x89\x01\x00\x00hJeuu\x8c\x14tissue_atlas_mapping\x94}\x94(\x8c\x06tissue\x94}\x94(\x8c\x02dg\x94K\x08\x8c\x04srlm\x94K\x02\x8c\x04cyst\x94K\x07u\x8c\tmagdeburg\x94}\x94(\x8c\x02dg\x94K\x03\x8c\x04srlm\x94K\t\x8c\x04cyst\x94K\nu\x8c\nfreesurfer\x94}\x94(\x8c\x02dg\x94K\xd1\x8c\x04srlm\x94K\xe3\x8c\x04cyst\x94K\xe4u\x8c\x07default\x94}\x94(\x8c\x02dg\x94K\x06\x8c\x04srlm\x94K\x07\x8c\x04cyst\x94K\x08uu\x8c\rresource_urls\x94}\x94(\x8c\x0cnnunet_model\x94}\x94(\x8c\x03T1w\x94\x8ckzenodo.org/record/4508747/files/trained_model.3d_fullres.Task101_hcp1200_T1w.nnUNetTrainerV2.model_best.tar\x94\x8c\x03T2w\x94\x8ckzenodo.org/record/4508747/files/trained_model.3d_fullres.Task102_hcp1200_T2w.nnUNetTrainerV2.model_best.tar\x94\x8c\x08hippb500\x94\x8cqzenodo.org/record/5732291/files/trained_model.3d_fullres.Task110_hcp1200_b1000crop.nnUNetTrainerV2.model_best.tar\x94\x8c\nneonateT1w\x94\x8c\x85zenodo.org/record/5733556/files/trained_model.3d_fullres.Task205_hcp1200_b1000_finetuneround2_dhcp_T1w.nnUNetTrainerV2.model_best.tar\x94\x8c\rneonateT1w_v2\x94\x8c\x81zenodo.org/record/8209029/files/trained_model.3d_fullres.Task301_dhcp_T1w_synthseg_manuallycorrected.nnUNetTrainer.model_best.tar\x94\x8c\x05T1T2w\x94\x8cmzenodo.org/record/4508747/files/trained_model.3d_fullres.Task103_hcp1200_T1T2w.nnUNetTrainerV2.model_best.tar\x94\x8c\rsynthseg_v0.1\x94\x8cqzenodo.org/record/8184230/files/trained_model.3d_fullres.Task102_synsegGenDetailed.nnUNetTrainerV2.model_best.tar\x94\x8c\rsynthseg_v0.2\x94\x8chzenodo.org/record/8184230/files/trained_model.3d_fullres.Task203_synthseg.nnUNetTrainerV2.model_best.tar\x94\x8c\x0bADNI_T1w_v1\x94\x8cgzenodo.org/record/15297857/files/trained_model.3d_fullres.Task301_ADNI_T1w_successful.nnUNetTrainer.tar\x94u\x8c\x05atlas\x94}\x94(\x8c\x06bbhist\x94\x8cwwww.dropbox.com/scl/fi/fdqujkekhlzbnxsah5kqr/atlas-bbhist_20250108.zip?rlkey=dupo8jtwjynbdou6xmr736txt&st=aiaqzpri&dl=0\x94\x8c\nmultihist7\x94\x8c{www.dropbox.com/scl/fi/g07u7la7v1kwfgsty6ujc/atlas-multihist7_20250108.zip?rlkey=bi7wbdsm93upgnn3bmlv4f1hx&st=5iv33isc&dl=0\x94u\x8c\x08template\x94}\x94(\x8c\x07CITI168\x94\x8cXfiles.ca-1.osf.io/v1/resources/v8acf/providers/osfstorage/65395bf0282745121fb86a93/?zip=\x94\x8c\x04dHCP\x94\x8cXfiles.ca-1.osf.io/v1/resources/v8acf/providers/osfstorage/65395bff13d27b123094c9b4/?zip=\x94\x8c\x05MBMv2\x94\x8cXfiles.ca-1.osf.io/v1/resources/v8acf/providers/osfstorage/65395c0887852d133ca597dd/?zip=\x94\x8c\x05MBMv3\x94\x8cXfiles.ca-1.osf.io/v1/resources/v8acf/providers/osfstorage/65395c0e8a28b11240ffc6e9/?zip=\x94\x8c\x05upenn\x94\x8cXfiles.ca-1.osf.io/v1/resources/v8acf/providers/osfstorage/65395c1613d27b122a94ca09/?zip=\x94\x8c\x04CIVM\x94\x8cXfiles.ca-1.osf.io/v1/resources/v8acf/providers/osfstorage/65395bf62827451220b86e24/?zip=\x94\x8c\x05ABAv3\x94\x8cXfiles.ca-1.osf.io/v1/resources/v8acf/providers/osfstorage/6668855b6b6c8e2cc704ca97/?zip=\x94\x8c\x08bigbrain\x94\x8cXfiles.ca-1.osf.io/v1/resources/v8acf/providers/osfstorage/666b1bc765e1de5972893e59/?zip=\x94\x8c\x06bbhist\x94\x8c\x0fplaceholder.url\x94uu\x8c\x0chippdwi_opts\x94}\x94(\x8c\x0cresample_dim\x94\x8c\n734x720x67\x94\x8c\x06bbox_x\x94}\x94(j\x89\x01\x00\x00\x8c\x07383 510\x94hJ\x8c\x07224 351\x94u\x8c\x06bbox_y\x94\x8c\x07198 453\x94u\x8c\x0eunfold_vol_ref\x94}\x94(\x8c\x04hipp\x94}\x94(\x8c\x04dims\x94]\x94(\x8c\x03256\x94\x8c\x03128\x94\x8c\x0216\x94e\x8c\x07voxdims\x94]\x94(\x8c\x070.15625\x94\x8c\x070.15625\x94\x8c\x070.15625\x94e\x8c\x06origin\x94]\x94(\x8c\x010\x94\x8c\x03200\x94j\xea\x02\x00\x00e\x8c\x06extent\x94]\x94(\x8c\x0240\x94\x8c\x0220\x94\x8c\x032.5\x94e\x8c\x06orient\x94\x8c\x03RPI\x94u\x8c\x07dentate\x94}\x94(\x8c\x04dims\x94]\x94(\x8c\x03256\x94\x8c\x0232\x94\x8c\x0216\x94e\x8c\x07voxdims\x94]\x94(\x8c\x070.15625\x94\x8c\x070.15625\x94\x8c\x070.15625\x94e\x8c\x06origin\x94]\x94(j\xea\x02\x00\x00\x8c\x03200\x94j\xea\x02\x00\x00e\x8c\x06extent\x94]\x94(\x8c\x0240\x94\x8c\x015\x94\x8c\x032.5\x94e\x8c\x06orient\x94\x8c\x03RPI\x94uu\x8c\x0cshape_inject\x94}\x94(\x8c\nlabels_reg\x94]\x94(K\x01K\x02K\x03K\x04K\x05K\x06K\x08e\x8c\x0flabels_reinsert\x94]\x94K\x07a\x8c\x10labels_overwrite\x94]\x94K\x02a\x8c\x15label_smoothing_stdev\x94\x8c\r0.5x0.5x0.5mm\x94u\x8c\x0elaplace_labels\x94}\x94(\x8c\x04hipp\x94}\x94(\x8c\x02AP\x94}\x94(\x8c\x02gm\x94]\x94(K\x01K\x08e\x8c\x03src\x94]\x94K\x05a\x8c\x04sink\x94]\x94K\x06au\x8c\x02PD\x94}\x94(\x8c\x02gm\x94]\x94(K\x01K\x08e\x8c\x03src\x94]\x94K\x03a\x8c\x04sink\x94]\x94K\x08au\x8c\x02IO\x94}\x94(\x8c\x02gm\x94]\x94(K\x01K\x08e\x8c\x03src\x94]\x94(K\x02K\x04K\x07K\te\x8c\x04sink\x94]\x94(K\x00K\neuu\x8c\x07dentate\x94}\x94(\x8c\x02AP\x94}\x94(\x8c\x02gm\x94]\x94K\x08a\x8c\x03src\x94]\x94K\x05a\x8c\x04sink\x94]\x94K\x06au\x8c\x02PD\x94}\x94(\x8c\x02gm\x94]\x94K\x08a\x8c\x03src\x94]\x94K\ta\x8c\x04sink\x94]\x94K\nau\x8c\x02IO\x94}\x94(\x8c\x02gm\x94]\x94K\x08a\x8c\x03src\x94]\x94(K\x01K\x03e\x8c\x04sink\x94]\x94(K\x02K\x04K\x07K\tK\nK\x00euuu\x8c\x11tight_crop_labels\x94}\x94(\x8c\x04hipp\x94]\x94K\x01a\x8c\x07dentate\x94]\x94(K\x08K\x06eu\x8c\x1dresample_dseg_for_templatereg\x94\x8c\r0.3x0.3x0.3mm\x94\x8c\x11unfoldreg_padding\x94\x8c\x080x0x0vox\x94\x8c\x0fsurf_thresholds\x94}\x94(\x8c\x05inner\x94K\x00\x8c\x05outer\x94K\x01\x8c\x0cmidthickness\x94G?\xe0\x00\x00\x00\x00\x00\x00u\x8c\x0esnakemake_args\x94]\x94(\x8c\x07--cores\x94\x8c\x03all\x94e\x8c\x0epybidsdb_reset\x94\x89\x8c\x0cpybidsdb_dir\x94N\x8c\rpybids_db_dir\x94N\x8c\x0fpybids_db_reset\x94\x8c\x1d<!DEPRECATED!>0<!DEPRECATED!>\x94\x8c\x05atlas\x94\x8c\nmultihist7\x94\x8c\x0enew_atlas_name\x94N\x8c\x0eatlas_metadata\x94}\x94(\x8c\x0ehcpUR100myelin\x94}\x94(\x8c\nIdentifier\x94\x8c\x0ehcpUR100myelin\x94\x8c\x10metric_wildcards\x94]\x94(\x8c\x06myelin\x94\x8c\tthickness\x94\x8c\tcurvature\x94\x8c\x0cgyrification\x94e\x8c\x0flabel_wildcards\x94]\x94(\x8c\x04hipp\x94\x8c\x07dentate\x94e\x8c\x0ehemi_wildcards\x94]\x94(j\x89\x01\x00\x00hJe\x8c\x11density_wildcards\x94]\x94(\x8c\x03512\x94\x8c\x022k\x94\x8c\x028k\x94\x8c\x0318k\x94e\x8c\x07Authors\x94]\x94\x8c\x00\x94a\x8c\x10Acknowledgements\x94j~\x03\x00\x00\x8c\x0bBIDSVersion\x94j~\x03\x00\x00\x8c\x10HowToAcknowledge\x94j~\x03\x00\x00\x8c\x07License\x94\x8c\x03MIT\x94\x8c\x04Name\x94\x8c4HippUnfold surface-based template and subfield atlas\x94\x8c\x04RRID\x94j~\x03\x00\x00\x8c\x12ReferencesAndLinks\x94]\x94j~\x03\x00\x00a\x8c\x13TemplateFlowVersion\x94j~\x03\x00\x00u\x8c\nmultihist7\x94}\x94(\x8c\nIdentifier\x94\x8c\nmultihist7\x94\x8c\x10metric_wildcards\x94]\x94(\x8c\tcurvature\x94\x8c\x0cgyrification\x94\x8c\tthickness\x94e\x8c\x0flabel_wildcards\x94]\x94(\x8c\x04hipp\x94\x8c\x07dentate\x94e\x8c\x0ehemi_wildcards\x94]\x94(j\x89\x01\x00\x00hJe\x8c\x11density_wildcards\x94]\x94(\x8c\x03512\x94\x8c\x022k\x94\x8c\x028k\x94\x8c\x0318k\x94e\x8c\x07Authors\x94]\x94j~\x03\x00\x00a\x8c\x10Acknowledgements\x94j~\x03\x00\x00\x8c\x0bBIDSVersion\x94j~\x03\x00\x00\x8c\x10HowToAcknowledge\x94j~\x03\x00\x00\x8c\x07License\x94\x8c\x03MIT\x94\x8c\x04Name\x94\x8c4HippUnfold surface-based template and subfield atlas\x94\x8c\x04RRID\x94j~\x03\x00\x00\x8c\x12ReferencesAndLinks\x94]\x94j~\x03\x00\x00a\x8c\x13TemplateFlowVersion\x94j~\x03\x00\x00u\x8c\x0chcpUR100mcgt\x94}\x94(\x8c\nIdentifier\x94\x8c\x0chcpUR100mcgt\x94\x8c\x10metric_wildcards\x94]\x94(\x8c\tcurvature\x94\x8c\x0cgyrification\x94\x8c\tthickness\x94\x8c\x06myelin\x94e\x8c\x0flabel_wildcards\x94]\x94(\x8c\x04hipp\x94\x8c\x07dentate\x94e\x8c\x0ehemi_wildcards\x94]\x94(j\x89\x01\x00\x00hJe\x8c\x11density_wildcards\x94]\x94(\x8c\x03512\x94\x8c\x022k\x94\x8c\x028k\x94\x8c\x0318k\x94e\x8c\x07Authors\x94]\x94j~\x03\x00\x00a\x8c\x10Acknowledgements\x94j~\x03\x00\x00\x8c\x0bBIDSVersion\x94j~\x03\x00\x00\x8c\x10HowToAcknowledge\x94j~\x03\x00\x00\x8c\x07License\x94\x8c\x03MIT\x94\x8c\x04Name\x94\x8c4HippUnfold surface-based template and subfield atlas\x94\x8c\x04RRID\x94j~\x03\x00\x00\x8c\x12ReferencesAndLinks\x94]\x94j~\x03\x00\x00a\x8c\x13TemplateFlowVersion\x94j~\x03\x00\x00u\x8c\x0bhcpUR100cgt\x94}\x94(\x8c\nIdentifier\x94\x8c\x0bhcpUR100cgt\x94\x8c\x10metric_wildcards\x94]\x94(\x8c\tcurvature\x94\x8c\x0cgyrification\x94\x8c\tthickness\x94e\x8c\x0flabel_wildcards\x94]\x94(\x8c\x04hipp\x94\x8c\x07dentate\x94e\x8c\x0ehemi_wildcards\x94]\x94(j\x89\x01\x00\x00hJe\x8c\x11density_wildcards\x94]\x94(\x8c\x03512\x94\x8c\x022k\x94\x8c\x028k\x94\x8c\x0318k\x94e\x8c\x07Authors\x94]\x94j~\x03\x00\x00a\x8c\x10Acknowledgements\x94j~\x03\x00\x00\x8c\x0bBIDSVersion\x94j~\x03\x00\x00\x8c\x10HowToAcknowledge\x94j~\x03\x00\x00\x8c\x07License\x94\x8c\x03MIT\x94\x8c\x04Name\x94\x8c4HippUnfold surface-based template and subfield atlas\x94\x8c\x04RRID\x94j~\x03\x00\x00\x8c\x12ReferencesAndLinks\x94]\x94j~\x03\x00\x00a\x8c\x13TemplateFlowVersion\x94j~\x03\x00\x00uu\x8c\x0eoutput_density\x94]\x94\x8c\x028k\x94a\x8c\x11unfoldreg_density\x94\x8c\x0318k\x94\x8c\x10resample_factors\x94]\x94(G@)\x00\x00\x00\x00\x00\x00K\x19K2KKe\x8c\x0fdensity_choices\x94]\x94(\x8c\x03512\x94\x8c\x022k\x94\x8c\x028k\x94\x8c\x0318k\x94e\x8c\x0eunused_density\x94]\x94(\x8c\x0318k\x94\x8c\x022k\x94\x8c\x03512\x94\x8c\x06native\x94e\x8c\x10snakemake_target\x94h\x82\x8c\x08modality\x94\x8c\x03T1w\x94\x8c\x08template\x94\x8c\x07CITI168\x94\x8c\x0finject_template\x94\x8c\x05upenn\x94\x8c\x10use_template_seg\x94\x89\x8c\x1dtemplate_seg_smoothing_factor\x94G@\x00\x00\x00\x00\x00\x00\x00\x8c\x0cskip_preproc\x94\x89\x8c\nskip_coreg\x94\x89\x8c\x1bskip_inject_template_labels\x94\x89\x8c inject_template_smoothing_factor\x94G?\xf0\x00\x00\x00\x00\x00\x00\x8c\x12rigid_reg_template\x94\x89\x8c\x0fno_reg_template\x94\x89\x8c\x0ft1_reg_template\x94\x89\x8c\x08crop_res\x94\x8c\r0.2x0.2x0.2mm\x94\x8c\x08crop_box\x94\x8c\x0e256x256x256vox\x94\x8c\x13resample_dsegtissue\x94N\x8c\x17laminar_coords_res_hipp\x94\x8c\r0.3x0.3x0.3mm\x94\x8c\x1alaminar_coords_res_dentate\x94\x8c\r0.1x0.1x0.1mm\x94\x8c\x0fno_unfolded_reg\x94\x89\x8c\x13generate_myelin_map\x94\x89\x8c\x07use_gpu\x94\x89\x8c\x11nnunet_enable_tta\x94\x89\x8c\routput_spaces\x94]\x94\x8c\x04hemi\x94]\x94(j\x89\x01\x00\x00hJe\x8c\x15laminar_coords_method\x94\x8c\x08equidist\x94\x8c\x12force_nnunet_model\x94\x89\x8c\x16plugins.validator.skip\x94\x88\x8c\x08bids_dir\x94\x8c\x18/local/scratch/lowresMRI\x94\x8c\noutput_dir\x94\x8c"/local/scratch/test-lowresMRI-3.13\x94\x8c\x0eanalysis_level\x94\x8c\x0bparticipant\x94\x8c\x11participant_label\x94]\x94\x8c\x0201\x94a\x8c\x19exclude_participant_label\x94N\x8c\x0bderivatives\x94\x89\x8c\ratlas_metrics\x94]\x94(\x8c\tcurvature\x94\x8c\x0cgyrification\x94\x8c\tthickness\x94e\x8c\x11snakemake_version\x94\x8c\x050.0.0\x94\x8c\x11snakebids_version\x94\x8c\x060.14.0\x94\x8c\x04root\x94j~\x03\x00\x00\x8c\x0bapp_version\x94\x8c\x07unknown\x94\x8c\rsnakemake_dir\x94\x8c$/local/scratch/hippunfold/hippunfold\x94\x8c\tsnakefile\x94\x8c7/local/scratch/hippunfold/hippunfold/workflow/Snakefile\x94u\x8c\x04rule\x94\x8c\x0eqc_nnunet_dice\x94\x8c\x0fbench_iteration\x94N\x8c\tscriptdir\x94\x8c>/local/scratch/hippunfold/hippunfold/workflow/rules/../scripts\x94ub.');del script;from snakemake.logging import logger;from snakemake.script import snakemake;__real_file__ = __file__; __file__ = '/local/scratch/hippunfold/hippunfold/workflow/scripts/dice.py';
ModuleNotFoundError: No module named 'pathlib._local'; 'pathlib' is not a package

Dhananjhay avatar Oct 04 '25 06:10 Dhananjhay