Open MauricePasternak opened 2 months ago
Hi @MauricePasternak
Thanks for reporting. Indeed, the genfi-to-bids
converter performs the conversion of all supported modalities without a way for the user to select a subset of them. Contrarily to other converters, there is no -m
option in the command line and the converter hasn't been implemented with this feature in mind initially.
Are you still able to convert all the modalities ? If yes, I think we should flag this issue as "feature request" rather than "bug" since the documentation is clear about downloading all modalities.
Describe the bug Some researchers may choose to omit a particular modality of interest, such as DWI. This prevents the pipeline from being able to process the remainder of the dataset into BIDS format.
To Reproduce Steps to reproduce the behavior:
poetry
installation ofclinica
genfi_to_bids_utils.py
for the function_find_duplicate_run
clinica convert genfi-to-bids [OPTIONS] DATASET_DIRECTORY BIDS_DIRECTORY
Expected behavior Should not erase all rows from the pandas DataFrame.
The culprit appears to be this line:
A re-factoring of core logic (i.e. what if users do not want modality _____ to be present?) may be necessary.
Screenshots
Desktop (please complete the following information):