Skip to content

Commit a48e2f8

Browse files
authored
Merge pull request #1237 from jarodroland/patch-1
DOC: Replace --clearenv with correct --cleanenv flag
2 parents 5ae72bb + 3b6dfc4 commit a48e2f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/installation.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Running a Singularity Image
115115

116116
If the data to be preprocessed is also on the HPC, you are ready to run fmriprep. ::
117117

118-
$ singularity run --clearenv /my_images/fmriprep-1.1.2.simg \
118+
$ singularity run --cleanenv /my_images/fmriprep-1.1.2.simg \
119119
path/to/data/dir path/to/output/dir \
120120
participant \
121121
--participant-label label
@@ -126,10 +126,10 @@ If the data to be preprocessed is also on the HPC, you are ready to run fmriprep
126126
the container <https://github.com/singularityware/singularity/issues/445>`_.
127127
Because of this your host libraries (such as nipype) could be accidentally used
128128
instead of the ones inside the container - if they are included in ``PYTHONPATH``.
129-
To avoid such situation we recommend using the ``--clearenv`` singularity flag
129+
To avoid such situation we recommend using the ``--cleanenv`` singularity flag
130130
in production use. For example: ::
131131

132-
$ singularity run --clearenv ~/poldracklab_fmriprep_latest-2016-12-04-5b74ad9a4c4d.img \
132+
$ singularity run --cleanenv ~/poldracklab_fmriprep_latest-2016-12-04-5b74ad9a4c4d.img \
133133
/work/04168/asdf/lonestar/ $WORK/lonestar/output \
134134
participant \
135135
--participant-label 387 --nthreads 16 -w $WORK/lonestar/work \
@@ -153,7 +153,7 @@ If the data to be preprocessed is also on the HPC, you are ready to run fmriprep
153153
the ``-B <host_folder>:<container_folder>`` Singularity argument.
154154
For example: ::
155155

156-
$ singularity run --clearenv -B /work:/work ~/poldracklab_fmriprep_latest-2016-12-04-5b74ad9a4c4d.simg \
156+
$ singularity run --cleanenv -B /work:/work ~/poldracklab_fmriprep_latest-2016-12-04-5b74ad9a4c4d.simg \
157157
/work/my_dataset/ /work/my_dataset/derivatives/fmriprep \
158158
participant \
159159
--participant-label 387 --nthreads 16 \
@@ -194,7 +194,7 @@ https://surfer.nmr.mgh.harvard.edu/registration.html.
194194
When using manually-prepared environments or singularity, FreeSurfer will search
195195
for a license key file first using the ``$FS_LICENSE`` environment variable and then
196196
in the default path to the license key file (``$FREESURFER_HOME/license.txt``).
197-
If using the ``--clearenv`` flag and ``$FS_LICENSE`` is set, use ``--fs-license-file $FS_LICENSE``
197+
If using the ``--cleanenv`` flag and ``$FS_LICENSE`` is set, use ``--fs-license-file $FS_LICENSE``
198198
to pass the license file location to fMRIPrep.
199199

200200
It is possible to run the docker container pointing the image to a local path

0 commit comments

Comments
 (0)