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

Not using previously computed Freesurfer outputs (Freesurfer version too new?) #29

Open
bwinsto2 opened this issue May 14, 2024 · 1 comment

Comments

@bwinsto2
Copy link

Hi. Using the following command:
docker run -ti --rm \ -v /data/adam_music/raw_data:/data/in \ -v /data/adam_music/derivatives/freesurfer:/data/freesurfer \ -v /data/adam_music/derivatives/baracus:/data/out \ bids/baracus /data/in /data/out participant \ --license_key "XX" --freesurfer_dir /data/freesurfer --participant_label P01

And it's saying Freesurfer data not found for P01. I previously ran fMRIprep on these subjects and Freesurfer outputs are there in derivatives/freesurfer. Actually, it started to run recon-all in the exact same directory where the other outputs are...lol.

The docs mention Freesurfer 5.3.0. Mine are in a newer version: 7.3.2. Could this be the problem? I could re-run recon-all, but this would be cumbersome, and I'm also on a deadline.

Any help is appreciated! Thanks.

@JavierSanchez3
Copy link

Hello. I got an error when trying to execute the commands to obtain the predicted brain age. I previously processed the data with FreeSurfer v7.4.0, but an error about "shape does not look right: (1, 58)" appeared. When I processed the data with FreeSurfer v5.3 using Baracus, everything was fine.

My question is whether it is possible to adjust something to run Baracus using the processed FreeSurfer data with the latest version in order to avoid re-processing the images.

Thanks!

"FINISHED. Prepared sub-103_ses-1 sub-103_ses-6
Traceback (most recent call last):
File "/usr/local/anaconda/bin/run_brain_age_bids.py", line 6, in
exec(compile(open(file).read(), file, 'exec'))
File "/code/scripts/run_brain_age_bids.py", line 83, in
predict_brain_age_single_subject(**d)
File "/code/baracus/predict.py", line 102, in predict_brain_age_single_subject
X = get_data(lh_thickness_file, rh_thickness_file, lh_area_file, rh_area_file, aseg_file)
File "/code/baracus/predict.py", line 60, in get_data
X["aseg"] = _vectorize_fs_tab(aseg_file)
File "/code/baracus/predict.py", line 24, in _vectorize_fs_tab
vectorized_data.shape)
AssertionError: /data/out/baracus/sub-103_ses-1/data/aseg shape does not look right: (1, 58)"

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

No branches or pull requests

2 participants