Skip to content

Ignore DWI phase data #1436

Description

@bpinsard

What happened?

Running mriqc on a dataset with DWI phase data generates DTI maps from phase data too (and that doesn't look good, and would corrupt mriqcwebapi crowdsourced database).

I see 2 options:

  • edit niworflows https://github.com/nipreps/niworkflows/blob/d991644f3a769d7c84e7c8bb897ea30fb96885df/niworkflows/utils/bids.py#L42 to ignore phase data by default, as it is done for other modalities, however I am not sure if that default filter is used in any software that would use these filters to input DWI data that can use phase data.
  • add dwi phase to MRIQC ignore regexes when indexing the BIDS repo

    mriqc/mriqc/config.py

    Lines 508 to 518 in c030ac1

    ignore_paths: list[Pattern] = [
    # Ignore folders at the top if they don't start with /sub-<label>/
    re.compile(r'^(?!/sub-[a-zA-Z0-9]+)'),
    # Ignore all modality subfolders, except for func/ or anat/
    re.compile(
    r'^/sub-[a-zA-Z0-9]+(/ses-[a-zA-Z0-9]+)?/'
    r'(beh|fmap|pet|perf|meg|eeg|ieeg|micr|nirs)'
    ),
    # Ignore all files, except for the supported modalities
    re.compile(r'^.+(?<!(_T1w|_T2w|bold|_dwi))\.(json|nii|nii\.gz)$'),
    ]

Let me know what make the most sense and I will gladly open a PR to one or the other.

What command did you use?

NA

What version of the software are you running?

24.0.2

How are you running this software?

Singularity

Is your data BIDS valid?

Yes

Are you reusing any previously computed results?

No

Please copy and paste any relevant log output.

Additional information / screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions