2
$\begingroup$

I have some troubles when I want to import NifTI files with Mathematica. When I do:

Import["Brats18_CBICA_AAB_1/Brats18_CBICA_AAB_1_flair.nii.gz", {"GZIP", "NifTI"}];

It returns me an error:

enter image description here

Did someone got this error? Is there a way to solve this problem?

What is strange is that it works well with the 30 first images of my folder of 285 brains ...

Thanks for your help, N.B.

$\endgroup$
  • 1
    $\begingroup$ Hm. Neurotica is neither one of the standard packages nor one that is discussed here often. Also, NifTI is not one of the supported $ImportFormats. Instead, the import filter is defined here Maybe it is a good idea to contact the authors of the package directly? Certainly, they will want to have the problematic file in order to reproduce the error. $\endgroup$ – Henrik Schumacher Apr 27 at 7:13
  • 1
    $\begingroup$ I am not sure that Neurotica is still maintained. I would try this package: github.com/mfroeling/QMRITools $\endgroup$ – Szabolcs Apr 27 at 14:25
  • $\begingroup$ Thank you a lot ! QMRITools works fine !! :) @Szabolcs $\endgroup$ – Nicolas Boutry Apr 27 at 22:09
  • $\begingroup$ What about BioFormatsLink, as suggested below? I'd be curious if it works well. $\endgroup$ – Szabolcs Apr 28 at 6:53
2
$\begingroup$

Wolfram officially maintains a package called BioFormatsLink which has NifTI support. I recommend you try this:

https://github.com/WolframResearch/BioFormatsLink

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.