ValueError: Conversion modality could not be found #1014
Replies: 6 comments 8 replies
-
Hi @espentrydal You get this error because the function As you can see, it is failing with your file because Usually, the files with It is difficult to tell you more without additional information. Did you notice any conversion error in the logs ? Could you provide them here ? Best, |
Beta Was this translation helpful? Give feedback.
-
Thank you for your very swift reply. I did not pipe stdout/stderr so unfortunately I only have the last 1400 lines which are related to fMRIs where there are some errors related to missing slices. I could not find a log file in the current directory or in the bids directory except for the modality_paths.tsv files. Are there any other logs available? |
Beta Was this translation helpful? Give feedback.
-
I have re-downloaded the dataset as one collection and rerun the Clinica conversion. I get a similar error message for another subject. And the conversions stop at this point as last time.
|
Beta Was this translation helpful? Give feedback.
-
@NicolasGensollen I have no files with |
Beta Was this translation helpful? Give feedback.
-
@NicolasGensollen After seeing this issue #1012 I redid the conversion of sub-ADNI002S4262 with Clinica 0.7.2. This works well without any errors. I receive the same errors as before with FLAIR or fMRI if I try this with 0.7.6. So it seems to be an error introduced between these versions. |
Beta Was this translation helpful? Give feedback.
-
I was able to reproduce this problem using clinica When running the actual dcm2niix commands extracted from the converter:
$ dcm2niix -w 0 -f sub-ADNI002S5178_ses-M000_FLAIR -o /Users/nicolas.gensollen/Downloads/bids/sub-ADNI002S5178/ses-M000/anat -z n -b y -ba y /Users/nicolas.gensollen/Downloads/ADNI/002_S_5178/Axial_T2-FLAIR/2013-05-16_19_31_16.0/I372847
Compression will be faster with 'pigz' installed http://macappstore.org/pigz/
Chris Rorden's dcm2niiX version v1.0.20230411 Clang14.0.0 ARM (64-bit MacOS)
Found 35 DICOM file(s)
Philips Scaling Values RS:RI:SS = 2.08132:0:0.00464127 (see PMC3998685)
Convert 35 DICOM as /Users/nicolas.gensollen/Downloads/bids/sub-ADNI002S5178/ses-M000/anat/sub-ADNI002S5178_ses-M000_FLAIR (256x256x35x1)
Conversion required 0.062921 seconds (0.028793 for core code).
$ dcm2niix -w 0 -f sub-ADNI002S4262_ses-M048_FLAIR -o /Users/nicolas.gensollen/Downloads/bids/sub-ADNI002S4262/ses-M048/anat -z n -b y -ba y /Users/nicolas.gensollen/Downloads/ADNI/002_S_4262/Axial_T2-FLAIR/2015-10-15_07_18_13.0/I573588
Compression will be faster with 'pigz' installed http://macappstore.org/pigz/
Chris Rorden's dcm2niiX version v1.0.20230411 Clang14.0.0 ARM (64-bit MacOS)
Found 35 DICOM file(s)
Philips Scaling Values RS:RI:SS = 2.11746:0:0.00437488 (see PMC3998685)
Convert 35 DICOM as /Users/nicolas.gensollen/Downloads/bids/sub-ADNI002S4262/ses-M048/anat/sub-ADNI002S4262_ses-M048_FLAIR_real (256x256x35x1)
Conversion required 0.062863 seconds (0.028903 for core code). I'm not sure what is going wrong with these conversions but it seems like an issue with the data and/or with dcm2niix. I think the best move for Clinica is to ignore those images instead of keeping them and crashing afterwards. @MatthieuJoulot @ghisvail any idea ? |
Beta Was this translation helpful? Give feedback.
-
Hi
I got this error probably at the end of converting files from ADNI to BIDS (participants.tsv has been created). I am unsure what the error means, and if it means I need to rerun the conversion, and in that case if there is anything I need to fix first.
Could it have something to do with this: #396 ?
Clinica version 0.7.6.
Converters: adni-2-bids
Ubuntu 22.04
Thanks!
Espen
Beta Was this translation helpful? Give feedback.
All reactions