MonashBI / arcana-legacy

Abstraction of Repository-Centric ANAlysis - a Python framework
Apache License 2.0
4 stars 3 forks source link

Create shorthand notation for pipelines consisting of a single node #72

Closed tclose closed 5 years ago

tclose commented 6 years ago

For some pipelines, which only consist of a single node there should be a simple wrapper that can be used to create the pipeline. Maybe something of the form

class MriStudy(Study):
    brain_extract_pipeline = pipeline_wrapper(fsl.BET, inputs={'preproc': 'in_file'}, outputs={'brain': 'out_file'})
tclose commented 5 years ago

The newer streamlined syntax is probably streamlined enough, and probably best to avoid introducing a new syntax