View Code? Open in Web Editor
NEW
A Python package that wraps C-PAC, enabling users to install `cpac` with `pip install cpac` and run from the command line.
Home Page: https://pypi.org/project/cpac/
License: MIT License
Python 91.89%
Shell 8.11%
cpac's Issues
Describe the bug
Running cpac --platform docker crash $CRASHFILE
vs cpac --platform singularity crash $CRASHFILE
:
Docker:
TypeError : sequence item 1 : expected str instance , NoneType found
Singularity:
Nipype version 1.1 .2
Traceback (most recent call last ):
[โฆ]
To reduce the amount of per-run typing / configuring required
The documentation and comments are pretty bare-bones as of 1ed5370 .
To pull Docker / Singularity image without running
Example:
cpac run s3://fcp-indi/data/Projects/ADHD200/RawDataBIDS ~ /outputs_p test_config --pipeline_file ~ /pipelinecarbs2.yml --pipeline_override=" maxCoresPerParticipant : 6"
error: argument --pipeline_override: Invalid configuration: ' maxCoresPerParticipant'
You can pass more than one custom binding, so instead of running, for example, it'll try to bind ./run:./run
The main pain point I was trying to resolve with this package is having to repeat yourself with binding directories and using the directories in the command; the wrapper should bind any directories you need from the command + your data config file without you having to tell it to.
The documentation should make this feature clearer / more prominent.
If it's not, we could drop the optional argument since it'll get overwritten by the positional argument anyway.
Errors like
traits .trait_errors .TraitError : The 'in_file' trait of a SkullStripInputSpec instance must be a pathlike object or string representing an existing file , but a value of '/outputs/working/resting_preproc_sub-0010002_ses-1/anat_preproc_afni_0/anat_skullstrip/sub-0010002_ses-1_run-1_T1w_resample.nii.gz' < class 'str' > was specified .
traits .trait_errors .TraitError : The 'transforms' trait of an ApplyTransformsInputSpec instance must be a list of items which are an existing file name or 'identity' , but a value of ['/out/working/resting_preproc_sub-PA265_sub-PA265/anat_mni_ants_register_0/calc_ants_warp/transform3Warp.nii.gz' , '/out/working/resting_preproc_sub-PA265_sub-PA265/anat_mni_ants_register_0/calc_ants_warp/transform2Affine.mat' , '/out/working/resting_preproc_sub-PA265_sub-PA265/anat_mni_ants_register_0/calc_ants_warp/transform1Rigid.mat' , '/out/working/resting_preproc_sub-PA265_sub-PA265/anat_mni_ants_register_0/calc_ants_warp/transform0DerivedInitialMovingTranslation.mat' , '/out/working/resting_preproc_sub-PA265_sub-PA265/_scan_rest/change_transform_type_0/updated_affine.txt' ] < class 'list' > was specified .
occur when the environment loading a crashfile in an environment that differs from the environment in which the file was pickled. Just touch
ing those is enough for those types of error to resolve and produce an output more useful for debugging.