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

bic-mni-models missing pre-generated files for mritotal #133

Open
SamPare opened this issue Jan 12, 2021 · 8 comments
Open

bic-mni-models missing pre-generated files for mritotal #133

SamPare opened this issue Jan 12, 2021 · 8 comments

Comments

@SamPare
Copy link

SamPare commented Jan 12, 2021

Hi,

I am working on macOS Catalina 10.15.7 and I have downloaded the minc-toolkit-v2 (1.9.18) and all the models from http://bic-mni.github.io/. When I run the mritotal command, I keep getting these codes:

$ mritotal /Users/samuelpare/Documents/MRI/rr_tar_DICOM/g124r/anonymized_19890323_183722/anonymized_19890323_183722_7d1_mri.mnc c1.mnc
Loading configuration file /opt/minc/1.9.18/bin/../etc/mritotal.cfg
Loading protocol default (protocol file = /opt/minc/1.9.18/bin/../etc/mritotal.default.cfg)
/opt/minc/1.9.18/bin/../share/mni-models/average305_t1_tal_lin_16_blur.mnc does not exist
/opt/minc/1.9.18/bin/../share/mni-models/average305_t1_tal_lin_8_blur.mnc does not exist
/opt/minc/1.9.18/bin/../share/mni-models/average305_t1_tal_lin_8_dxyz.mnc does not exist
/opt/minc/1.9.18/bin/../share/mni-models/average305_t1_tal_lin_16_mask.mnc does not exist
/opt/minc/1.9.18/bin/../share/mni-models/average305_t1_tal_lin_8_mask.mnc does not exist
/opt/minc/1.9.18/bin/../share/mni-models/average305_t1_tal_lin_headmask.mnc does not exist
Died at /opt/minc/1.9.18/bin/mritotal line 728.

I have also tried to direct the command with the icbm models offered in http://bic-mni.github.io/ using the option -modeldir and -model and I have the same problem:

$ mritotal /Users/samuelpare/Documents/MRI/rr_tar_DICOM/g124r/anonymized_19890323_183722/anonymized_19890323_183722_5d1_mri.mnc c1.mnc -modeldir /opt/minc/share/icbm152_model_09a -model mni_icbm152_csf_tal_nlin_sym_09a      
Loading configuration file /opt/minc/1.9.18/bin/../etc/mritotal.cfg
Loading protocol default (protocol file = /opt/minc/1.9.18/bin/../etc/mritotal.default.cfg)
/opt/minc/share/icbm152_model_09a/mni_icbm152_csf_tal_nlin_sym_09a_16_blur.mnc does not exist
/opt/minc/share/icbm152_model_09a/mni_icbm152_csf_tal_nlin_sym_09a_8_blur.mnc does not exist
/opt/minc/share/icbm152_model_09a/mni_icbm152_csf_tal_nlin_sym_09a_8_dxyz.mnc does not exist
/opt/minc/share/icbm152_model_09a/mni_icbm152_csf_tal_nlin_sym_09a_16_mask.mnc does not exist
/opt/minc/share/icbm152_model_09a/mni_icbm152_csf_tal_nlin_sym_09a_8_mask.mnc does not exist
/opt/minc/share/icbm152_model_09a/mni_icbm152_csf_tal_nlin_sym_09a_headmask.mnc does not exist
Died at /opt/minc/1.9.18/bin/mritotal line 728.

Anyone know what I am missing?

Thank you very much,
Samuel

@vfonov
Copy link
Member

vfonov commented Jan 13, 2021

you are missing data package with models (i.e http://packages.bic.mni.mcgill.ca/minc-toolkit/MacOSX/bic-mni-models-0.1.1-20120421.dmg )

@SamPare
Copy link
Author

SamPare commented Jan 13, 2021

I had already downloaded this package and I even tried to delete/re-download them and the issue persists. However, it seems that the command is trying to find models with names that do not match the models I get from the package.

For instance, the package with models gives me the model : mni_icbm152_t1_tal_nlin_sym_09a_mask.mnc but the command is looking for mni_icbm152_csf_tal_nlin_sym_09a_8_mask.mnc.

It always adds a 8 or 16 the file names they are trying to find. Moreover, the _blur files seems to be missing from the package models.

Any clue?

Thank you

@vfonov
Copy link
Member

vfonov commented Jan 13, 2021

I see, sorry, looks like we forgot to include autogenerated files for mritotal
it's looking for downsampled (by 8x8x8 mm version of original file)
you can use a different script instead of mritotal , that produces needed files on the fly : bestlinreg.pl

@vfonov
Copy link
Member

vfonov commented Jan 13, 2021

try
bestlinreg.pl /Users/samuelpare/Documents/MRI/rr_tar_DICOM/g124r/anonymized_19890323_183722/anonymized_19890323_183722_5d1_mri.mnc /opt/minc/share/icbm152_model_09a/mni_icbm152_t1_tal_nlin_sym_09a.mnc c1.xfm c1.mnc

@SamPare
Copy link
Author

SamPare commented Jan 13, 2021

It worked! Thank you so much!

@SamPare SamPare closed this as completed Jan 13, 2021
@gdevenyi
Copy link
Contributor

I'm going to reopen this to document the missing pre-gened files.

@gdevenyi gdevenyi reopened this Jan 13, 2021
@gdevenyi gdevenyi changed the title mritotal failure bic-mni-models missing pre-generated files for mritotal Jan 13, 2021
@vfonov
Copy link
Member

vfonov commented Jan 13, 2021

one need to run make_model script, it will generate downsampled files. However , almost nobody is using mritotal these days.

@gdevenyi
Copy link
Contributor

I agree bestlinreg is better, things should work at least :)

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

3 participants