PennLINC / babs

BIDS App Bootstrap (BABS)
https://pennlinc-babs.readthedocs.io
MIT License
5 stars 5 forks source link

[ENH] `singularity run`: handle FreeSurfer license and Templateflow home #83

Closed zhao-cy closed 1 year ago

zhao-cy commented 1 year ago

In this PR, I've made changes for how FreeSurfer license gets passed into container (breaking change! @djarecka ) and how Templateflow home path gets passed into container when container running. In details:

Currently, the generated singularity run looks like below (if --fs-license-file is one of the arguments, and env variable TEMPLATEFLOW_HOME is set up):

singularity run --cleanenv \
    -B ${PWD} \
    -B /path/to/templateflow_home:/SGLR/TEMPLATEFLOW_HOME \
    -B /path/to/license.txt:/SGLR/FREESURFER_HOME/license.txt \
    --env TEMPLATEFLOW_HOME=/SGLR/TEMPLATEFLOW_HOME \
    containers/.datalad/environments/fmriprep-20-2-3/image \
    ...
    --fs-license-file /SGLR/FREESURFER_HOME/license.txt \

For details, please refer to updated docs: https://pennlinc-babs.readthedocs.io/en/latest/preparation_config_yaml_file.html