Skip to content

.v files are not handled by ADNI-to-BIDS converter #1532

@Adam-Ismaili-92

Description

@Adam-Ismaili-92

Bug Description
When the ADNI-to-BIDS conversion is launched on ADNI data from the new IDA LONI interface (since October 2024), it fails because certain types of imaging files (ECAT files with the .v extension) are not supported by the converter.

It is important from them to be supported as part of the ADNI-to-BIDS converter upgrade.

To Reproduce
Steps to reproduce the behavior:

  1. Download a subset of ADNI containing a .v file, or the whole dataset, from the new IDA LONI interface.
  2. Convert the set of data using the current converter with the following command : clinica convert adni-to-bids DATASET_DIRECTORY CLINICAL_DATA_DIRECTORY BIDS_DIRECTORY
  3. After some conversion time, see the printed error.

Expected Behavior
An error as the one shown below should be encountered :
ValueError: For subject 109_S_1343 in session ses-M000, an error occurred whilst recentering Nifti image: /ADNI/DATASET_DIRECTORY/109_S_1343/FDG_Brain_Em_-_Iter_Brain_Mode_/2007-04-24_07_26_33.0/I78559/ADNI_109_S_1343_PET_FDG_Brain_Em_-_Iter_Brain_Mode__br_raw_20071026071616697_S41947_I78559.v
The error is: Cannot work out file type of "/ADNI/DATASET_DIRECTORY/109_S_1343/FDG_Brain_Em_-_Iter_Brain_Mode_/2007-04-24_07_26_33.0/I78559/ADNI_109_S_1343_PET_FDG_Brain_Em_-_Iter_Brain_Mode__br_raw_20071026071616697_S41947_I78559.v"

Software Info

  • OS: Linux
  • Clinica version: 0.9.4
  • Python version: 3.11.13

Additional Context
Resolving this issue could involve modifying the function _create_file from /clinica/clinica/converters/adni_to_bids/_utils.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions