Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GENFI2BIDS fails for downloads that omit DWI modality images #1306

Open
MauricePasternak opened this issue Sep 30, 2024 · 2 comments
Open

GENFI2BIDS fails for downloads that omit DWI modality images #1306

MauricePasternak opened this issue Sep 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@MauricePasternak
Copy link

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:

  1. Fresh poetry installation of clinica
  2. Fresh download of GENFI as per clinica docs instructions. Omit DWI modality scans in the download.
  3. Set breakpoints in genfi_to_bids_utils.py for the function _find_duplicate_run
  4. 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:

df = df[df["suffix"].str.contains("dwi", case=False)]

A re-factoring of core logic (i.e. what if users do not want modality _____ to be present?) may be necessary.

Screenshots
image

Desktop (please complete the following information):

  • OS: Linux Ubuntu 22.04
@MauricePasternak MauricePasternak added the bug Something isn't working label Sep 30, 2024
@NicolasGensollen
Copy link
Member

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.

Copy link

This issue is considered stale because it has not received further activity for the last 14 days. You may remove the inactive label or add a comment, otherwise it will be closed after the next 14 days.

@github-actions github-actions bot added the inactive Issue or request has gone stale label Dec 30, 2024
@AliceJoubert AliceJoubert removed the inactive Issue or request has gone stale label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants