Skip to content

Commit 8ffb2b4

Browse files
authored
Merge pull request #786 from AaltoSciComp/fmri25
updating fmriprep to 2025 version
2 parents ac9b698 + c64e80d commit 8ffb2b4

File tree

2 files changed

+40
-11
lines changed

2 files changed

+40
-11
lines changed

aalto/jupyterhub-instructors/course-data.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ it minimally usable for others.
2727
**In both cases, you need to** ``chmod -R a+rX`` **the data directory
2828
whenever new files or directories are added so that the data becomes
2929
readable to students.** This can be done either by running
30-
`chmod -R a+rX` in the Jupyter terminal for each newly added
31-
file/directory, or by running `chmod -R a+rX /coursedata/*` to
30+
``chmod -R a+rX`` in the Jupyter terminal for each newly added
31+
file/directory, or by running ``chmod -R a+rX /coursedata/*`` to
3232
change permissions for all files at once.
3333

3434
Note: after you are added to relevant group to access the data, it

triton/apps/fmriprep.rst

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
FMRIprep
22
~~~~~~~~
33

4-
.. admonition:: Warning: page not updated for current Triton
4+
.. admonition:: As of 26/09/2025 fmriprep has changed.
55
:class: warning, triton-v2-apps
6+
7+
The new version of fmriprep has a different syntax. You can load a previous version by running ``module load apptainer-fmriprep/VERSION``
68

7-
This page hasn't been updated since Triton was completely upgraded
8-
in May 2024. The software might not be installed and the old
9-
information below might not work anymore (or might need adapting).
10-
If you need this software, :ref:`open an issue <issuetracker>` and
11-
tell us so we can reinstall/update it.
129

1310
This page describe how to use fmriprep on Triton.
1411

@@ -19,9 +16,41 @@ This page describe how to use fmriprep on Triton.
1916
fmriprep is installed as an Apptainer container. By default it will always run the newest version installed on triton. If you need a version that is not currently installed on triton, please open an issue at https://version.aalto.fi/gitlab/AaltoScienceIT/triton/issues
2017

2118

22-
=============
23-
How to run it
24-
=============
19+
=======================
20+
How to run new versions
21+
=======================
22+
23+
Here an example script with open data
24+
25+
::
26+
27+
#!/bin/bash
28+
#SBATCH --time=2-00:00:00
29+
#SBATCH --mem-per-cpu=50G
30+
#SBATCH --array=1 # here one can change
31+
#SBATCH --output=logs/fmriprep_%A_%a.out
32+
#SBATCH --cpus-per-task=6
33+
34+
n=$SLURM_ARRAY_TASK_ID
35+
iteration=`sed -n "${n} p" subjects_list.txt` # Get n-th line (1-indexed) of the file
36+
bids_folder="/scratch/shareddata/set1/openneuro/ds003017-download/"
37+
derivatives_folder="/scratch/rse/installations/fmriprep/derivatives/"
38+
work_folder="/scratch/rse/installations/fmriprep/temp/$iteration"
39+
40+
mkdir -p logs
41+
mkdir -p ${work_folder}
42+
echo ${iteration}
43+
44+
module apptainer-fmriprep/25.1.4
45+
46+
apptainer exec -B /m:/m -B /l:/l -B /scratch:/scratch ${IMAGE_PATH} fmriprep ${bids_folder} ${derivatives_folder} -w ${work_folder} participant --participant-label ${iteration} --n_cpus 6 --output-spaces MNI152NLin6Asym:res-2 T1w --cifti-output 91k --return-all-components --fd-spike-threshold 0.2 --fs-license-file /scratch/shareddata/set1/freesurfer/license.txt --write-graph
47+
48+
49+
The main difference is that we are not using anymore apptainer_wrapper which used to take care of all the ``-B`` mounting of folders.
50+
51+
=======================
52+
How to run old versions
53+
=======================
2554

2655
Here an example to run fmriprep for four subject, using an array. The raw data in BIDS format are in the path ``<path-to-bids>``, then you can create a folder for the derivatives that is different than the BIDS folder ``<path-to-your-derivatives-folder>``. Also create a temporary folder under your scratch/work folders for storing temporary files ``<path-to-your-scratch-temporary-folder>`` for example ``/scratch/work/USERNAME/tmp/``. The content of this folder should be removed after fmriprep has finished.
2756

0 commit comments

Comments
 (0)