Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behaviour and location of workdir, and removing hippunfold/ toplevel folder #338

Open
wants to merge 2 commits into
base: dev-v2.0.0
Choose a base branch
from

Conversation

akhanf
Copy link
Member

@akhanf akhanf commented Dec 20, 2024

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..

- WIP
- sets workdir to a temp directory by default
- the files won't be deleted by the workflow, but we could make use of
temp() to do so..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant