Jan Valosek, 2021 - 2024
The script automatically set display options for FSLeyes viewer.
fsleyes_preset.sh sub-01_T1w_seg.nii.gz
# starts FSLeyes will following options:
fsleyes sub-01_T1w_seg.nii.gz -cm red -a 50
fsleyes_preset.sh sub-01_T1w.nii.gz
# starts FSLeyes will following options:
fsleyes sub-01_T1w.nii.gz -dr 0 <max * 0.7>
.nii
and .nii.gz
files from given directory and ignore all other files (such as json, yml, etc.), e.g.:fsleyes_preset.sh *
# starts FSLeyes will following options:
fsleyes sub-01_T1w_seg.nii.gz -cm red -a 50 sub-01_T1w.nii.gz -dr 0 <max * 0.7>
$HOME/code
, or anywhere else):git clone https://github.com/valosekj/fsleyes_preset.git
Go into the cloned repo (by cd fsleyes_preset
) and create a virtual environment there. Next, install requirements (manual here).
Run the script (shell wrapper calls python script ):
fsleyes_preset.sh <image_1.nii.gz> ... <image_X.nii.gz>
rc
file (.bashrc
or .zshrc
) to start the script only by typing ff
:alias ff='$HOME/code/fsleyes_preset/fsleyes_preset.sh'
git pull