UCL-ARC / Enigma-PD-WML

Segment White Mater Lesions (WML) in T1-weighted and FLAIR MRI images using FSL and U-Net
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Add flag to optionally cleanup intermediate files #6

Open p-j-smith opened 2 months ago

p-j-smith commented 2 months ago

Motivation

The analysis pipeline creates large intermediate files that can be deleted

Pitch

Alternatives

Suggested by Chris via email:

My job failed because I hadn’t specified enough memory. When I tried to rerun it, it failed again because the t1-mni.anat folder already existed which I then had to delete before rerunning I would highly advice to build in an if statement that checks if that folder and necessary files already exist and skip these steps if they exist as having to rerun fsl_anat is quite a waste of time, resources and can alleviate some frustration for the people that have to use the pipeline (on large datasets)

If the --cleanup flag is not set, we could look for and use intermediate files.

Additional context

No response