Skip to content

Some viscodes are not handled by ADNI-to-BIDS converter #1533

@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 viscodes (nv, sc, scmri) 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 files with associated viscode "nv", "sc" or "scmri" in the clinical data, 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: The viscode nv is not correctly formatted. Expected a session identifier of the form 'MXXX', or a baseline identifier among {'bl', 'm0'}.

Software Info

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

Additional context
Resolving this issue could involve modifying the function _viscode_to_session from /clinica/clinica/converters/_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