brainvisa / brainvisa.github.io

Source of BrainVISA developers site
2 stars 2 forks source link

Automated flipping failed for Morphologist 2021 pipeline #152

Closed YafanWu closed 2 months ago

YafanWu commented 11 months ago

When trying to allow flipping in the morphologist pipeline, the whole pipeline failed within seconds.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Morphologist 2021'
  2. Click on 'Image orientation handling'
  3. Tick the "allow flip initial MRI" box
  4. Run the pipeline

Screenshots Screenshot from 2023-09-22 05-52-07

Environment:

I'm attaching the nifti file I used below (please unzip before use). When using the same nifti file without allowing flipping, the morphologist pipeline gives inverted sulci recognition results, which was to recognise folds that should appear in the left hemisphere to be in the right side(and all wrong).

Thank you very much. 11003 (1).nii.zip

denisri commented 11 months ago

Hi, I confirm the problem. I'll look at it soon.

denisri commented 11 months ago

I have fixed the process.

denisri commented 11 months ago

Is the issue fixed ? Can we close the ticket ?

YafanWu commented 11 months ago

I have fixed the process.

  • update: as you are using a singularity image, it is read-only. You will need to copy the brainvisa installaton in a read-write filesystem. It is very easy to do but it will consume about 3 GB of extra disk space. To do so:

    • run <brainvisa_install_dir>/bin/bv (with no other argument): a graphical interface for configuration will show up.
    • in this interface, click on the button at "BrainVisa installation: read-only...", check the "install read-write" button and validate.
    • then the "install bugfix patches" button will become available. It will download patches from the web site.
  • However in this case the normalization using SPM, starting with an image in a completely different orientation, does not find out the correct orientation, and the result will still be wrong. You will need to use the manual procedure to correctly reorient the image:

    • un-check the "perform normalization" parameter in the main Morphologist pipeline
    • click AC/PC/IP and left hemisphere points by hand in Anatomist. The thing is that I have no idea where the left side actually is, since the image orientation is not known at all. You will have to get clues about this...
    • You can perform only this first image orientation step by un-selecting later steps in the pipeline
  • After the manual reorientation is done, you could restart completely the Morphologist pipeline using the automatic normalization if you wish to have a better normalization. This time the input image will be correctly oriented and the automatic pipeline should work.

Hi Denis,

Thank you very much for your help! I've successfully installed read-write version for 5.1.1, but It's a bit complicated with my developer version 5.4.8 as the read-write version couldn't be installed. Thanks for providing me with the guideline of manual labelling, working on them now, might take me a bit of time tho because my background isn't in neuroscience thus I'm also having trouble distinguishing the left side...

denisri commented 11 months ago

You are using a developer version ? I didn't know about that. The read/write install is only for a user image, which is normally read-only. Developers build the programs from sources, so their install is always read/write. Normally the developer version does not propose the read/write installation because it is already read/write. The 5.4.x developer images are not ready for use, they are test images for the future. They should not be visible from the web site, but I forgot to hide them and fixed that recently. If you're not a developer, if possible, I'd suggest to stick with the user install (unless you really need a new feature, but we cannot afford to do support on the dev versions outside of the close developers team).