Skip to content

bidscoiner ouputs files that haven't been specified in the editor #285

@JohannesWiesner

Description

@JohannesWiesner

Describe the bug

I used the bidseditor to create an edited bidsmap.yaml that should map all unique instances of my DICOMs to their corresponding BIDS-compliant NIfTI files. In the editor, everything looks correct — I’ve assigned unique labels to all distinct cases, and the mappings appear to cover all files properly. However, when I run bidscoiner, I get unexpected files that don’t appear in the editor.

In particular, for the T1w images: I know that for some subjects, there are two versions of the same T1w scan — one is non-uniformity–corrected by the scanner (identified by "NORM" in the "ImageType" field) and the other one is not (See this link). I currently differentiate between those two by using the desc-unnorm and desc-norm labels.

Despite this, bidscoiner generates additional files such as:

sub-YL4AS_ses-05_acq-unnorm_run-2_T1w.nii.gz
sub-6IECX_ses-03_acq-unnormEq1_T1w.nii.gz

These extra variants don’t correspond to anything I can see in the bidseditor, so I’m trying to understand why they’re being created.

My only clue right now is that bidscoin does not look at the ""ImageTypeText" field?

Expected behavior

Bidsmapper and/or Bidseditor should see all unique instances of my DICOMS so I can properly edit the bidsmap.yaml

Screenshots

Image Image

Software version

  • BIDScoin version: 4.6.2
  • OS (e.g. Windows, Linux, MacOS): Linux

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions