Behaviour and location of workdir, and removing hippunfold/ toplevel folder #338
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, each hippunfold output directory would contain hippunfold and work sub-directories. This moves the work folder to a temporary location (e.g. a folder in /tmp), and then removes the extra top-level hippunfold folder. That extra folder level isn't really needed removing it makes hippunfold more bids-derivatives compliant.
There is no automatic archiving of the work directory anymore as well, so the --keep-work option is removed. We also have a new CLI option for setting the location of the workdir. By default, the files in work are not deleted by snakemake, so the user could keep them by setting --workdir appropriately, or point it to e.g. $SLURM_TMPDIR.
We can also make use of the temp() directive in the workflow to have snakemake delete the files after they are no longer needed, which can be disabled with --notemp. I don't think its really critical to do that though, since the workdir can be put in a place where the system will delete them later..