danjgale / nii-masker

Convenient command-line wrapper for nilearn's Masker objects
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Use Pydra to manage dataflow #21

Open harveyaa opened 3 years ago

harveyaa commented 3 years ago

Hi Dan,

In our lab we often have to generate time series and connectomes for huge datasets, which calls for parallelisation of the workflow and keeping track of progress. Currently, niimasker usesmultiprocessing for parallelisation but I think it would be useful to upgrade to using pydra https://github.com/nipype/pydra:

The team that developed it provides an example application pydra-ml https://github.com/nipype/pydra-ml, which is how I would like to structure niimasker:

Using pydra workflows to manage the different steps of processing would also be really useful for adding features in the future. Additional steps are really easy to include in the workflow, by tacking them on to the end as another node (e.g. producing connectomes from timeseries) or splitting nodes (e.g. running the whole process with multiple parcellations).

Would you be interested in including this in the project?

danjgale commented 3 years ago

I have to spend more time digging into it, but I Pydra is on my radar because of Nipype's upgrade. I have my own complaints about nipype's workflow engine that I hope nipype/pydra addresses. If so, then I'm interested. I'll get back to you on this! I know the brainhack has a section on this so I'll be checking this out