Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MiDeFace in 7.3.2 does not seem to work #1042

Closed
klemens-egger opened this issue Dec 20, 2022 · 6 comments
Closed

MiDeFace in 7.3.2 does not seem to work #1042

klemens-egger opened this issue Dec 20, 2022 · 6 comments

Comments

@klemens-egger
Copy link

klemens-egger commented Dec 20, 2022

I am trying to use the Freesurfer script MiDeFace to anonymize my anatomical data.

I am using docker to have the Freesurfer v7.3.2. containerised.

This is the code to run the container
docker run -it --rm -v <path_to_BIDS_dataset>:/data freesurfer/freesurfer:7.3.2

when trying to run this code:
mideface --i /data/sub-01/ses-01/anat/sub-01_ses-01_T1w.nii --o /data/sub-01/ses-01/anat/sub-01_ses-01_T1w.defaced.nii --odir /data/sub-01/ses-01/anat --no-samseg-fast --nii

I get the following output, and I did not find any solution online.

Tue Dec 20 16:00:41 UTC 2022

setenv SUBJECTS_DIR /data
cd /root
/usr/local/freesurfer/bin/mideface --i /data/sub-01/ses-01/anat/sub-01_ses-01_T1w.nii --o /data/sub-01/ses-01/anat/sub-01_ses-01_T1w.defaced.nii
-rwxrwxr-x. 1 root root 27366 Aug 4 04:51 /usr/local/freesurfer/bin/mideface

freesurfer-linux-centos8_x86_64-7.3.2-20220804-6354275
$Id$
Linux 86a9c252ea7d 4.18.0-408.el8.x86_64 #1 SMP Mon Jul 18 17:42:52 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
pid 377
UseXvfb 0
samseg --i /data/sub-01/ses-01/anat/sub-01_ses-01_T1w.nii --o /data/sub-01/ses-01/anat/tmpdir.midefacer.377/samseg --threads 1 --block-coordinate-descent --options /usr/local/freesurfer/average/mideface-atlas/samseg-options.json
uptime: Command not found.
upt: Subscript out of range.
ERROR:

@yhuang43
Copy link
Contributor

uptime is a system command. Can you check if it is in your PATH? It is probably in /usr/bin.

@dngreve
Copy link
Contributor

dngreve commented Dec 22, 2022 via email

@klemens-egger
Copy link
Author

I tried to find uptime, but it does not seem to be there.

also tried to unset FS_TIME_ALLOW (using bash), but it did not solve the issue and the mideface gives the same error still.
Could it be that the docker image docker pull freesurfer/freesurfer:7.3.2 is not downloading every dependency or do you have another idea?

@yhuang43
Copy link
Contributor

use 'export FS_TIME_ALLOW=0' for bash

@yhuang43
Copy link
Contributor

You can also 'export FSTIME_LOAD=0' to just skip uptime. This is probably better because it will still report the execution time.

@klemens-egger
Copy link
Author

Ah perfect, this did the trick. mideface could run now till the end. Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants