Coder Social home page Coder Social logo

shnizzedy / cpac Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 1.02 MB

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

๐Ÿ› `--pipeline_override`s are not parsing correctly

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'

๐Ÿ“š Clarify / emphasize automatic binding

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.

๐Ÿฅ’ Automatically touch paths that Nipype crashfiles expect

Errors like

  • โ€ฆinstance must be a pathlike objectโ€ฆ
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.
  • โ€ฆinstance must be a list of items which are an existing file nameโ€ฆ
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 touching those is enough for those types of error to resolve and produce an output more useful for debugging.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.