Unable to run selxavg3-sess freesurfer command on neurodesk #473
-
Hello, Following on from my discussion regarding
I have tried the following
Now I am not sure how to proceed. I have additionally also tried running the command with the Any help again would be appreciated! Best wishes, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 31 replies
-
One way I think to make this work is to run it inside the matlab container and source my own version of FreeSurfer in my home directory. However, inside the matlab container there is currently no
|
Beta Was this translation helpful? Give feedback.
-
@adam-coates - we have now matlab 2022b with csh installed inside. Can you test if that gets you further? |
Beta Was this translation helpful? Give feedback.
-
I also just fixed this in freesurfer 8.0.0: The image is currently building here: https://github.com/NeuroDesk/neurocontainers/actions/runs/12944747792 |
Beta Was this translation helpful? Give feedback.
-
Okay I just tested using the matlab 2022b image.
Thanks so much for your help with this! |
Beta Was this translation helpful? Give feedback.
-
I finally managed to get it working turns out we can use mcr and no need for octave or matlab at all! I am using FreeSurfer/7.4.1. I set export FSF_OUTPUT_FORMAT=.nii (Here I do not use .nii.gz, because currently there needs to be write permissions to Use the command The whole main reason why this command didn't work is because of how FSF_OUT_FORMAT was being set to I suggest that FreeSurfer containers are built with a fix where FSF_OUTPUT_FORMAT is defined, either in |
Beta Was this translation helpful? Give feedback.
-
Great, yeah of course this makes sense to bind /tmp to scratch which should make it read and writeable. Here I still had to set FSF_OUTPUT_FORMAT=.nii.gz, otherwise I got the error if: expression syntax again. I think it would be better to stick with .nii.gz for the smaller file size in general. So setting containers to .nii.gz would be better. I tried using freesurfer8.0.0 but I got this error:
However, with FreeSurfer 7.4.1 it completed successfully by binding /tmp to scratch and setting FSF_OUTPUT_FORMAT=.nii.gz. Therefore, I think there might be something specific to the freesurfer 8.0.0 container, whether having set to use octave instead of mcr (I suspect that the resason for this undefined symbol error). Thanks so much for your help with this, it is very appreciated!! I think once/ if I have a bit of downtime I'd be happy to contribute to documentation about FreeSurfer FSFAST analysis but this won't be until a few months or so. |
Beta Was this translation helpful? Give feedback.
I finally managed to get it working turns out we can use mcr and no need for octave or matlab at all!
I am using FreeSurfer/7.4.1.
I set export FSF_OUTPUT_FORMAT=.nii (Here I do not use .nii.gz, because currently there needs to be write permissions to
/scratch
inside the container which there isn't currently it is only read-only. Therefore, MATLAB can write in.nii
without being zipped up to the users output directory without needing/scratch
.Use the command
selxavg3-sess -s sub-002 -analysis allimages_ses-1.sm0 -mcr 1
with the mcr flag.The whole main reason why this command didn't work is because of how FSF_OUT_FORMAT was being set to
.nii.gz# mni env requirements
. Therefore, we do not…