Skip to content

Confusing behaviour if labels are present #84

@jcohenadad

Description

@jcohenadad

After experiencing #83, I re-run the command, but this time, labels were already present for the first subject (Marseille1). As a result, it skipped it, which is not what I expected:

Terminal output
julien-macbook:~/code/coil-qc-code $ python ~/code/manual-correction/manual_correction.py -path-img data -path-out data/derivatives/labels -config config_labels.yml
----------------------------------------------------------------------------------------------------
Parsing of arguments:
  Input folder ('-path-img') .............. /Users/julien/code/coil-qc-code/data
  Label folder ('-path-label') .............. /Users/julien/code/coil-qc-code/data/derivatives/labels
  Output folder ('-path-out') ............. /Users/julien/code/coil-qc-code/data/derivatives/labels
----------------------------------------------------------------------------------------------------
Creating new folder: /Users/julien/code/coil-qc-code/data/derivatives/labels
If you are creating label(s) from scratch, ignore the following message.

The following label files are missing: 
['/Users/julien/code/coil-qc-code/data/derivatives/labels/sub-MGH1/anat/sub-MGH1_UNIT1_label-disc.nii.gz', '/Users/julien/code/coil-qc-code/data/derivatives/labels/sub-MNI1/anat/sub-MNI1_UNIT1_label-disc.nii.gz', '/Users/julien/code/coil-qc-code/data/derivatives/labels/sub-MPI1/anat/sub-MPI1_UNIT1_label-disc.nii.gz', '/Users/julien/code/coil-qc-code/data/derivatives/labels/sub-NTNU1/anat/sub-NTNU1_UNIT1_label-disc.nii.gz', '/Users/julien/code/coil-qc-code/data/derivatives/labels/sub-NYU1/anat/sub-NYU1_UNIT1_label-disc.nii.gz', '/Users/julien/code/coil-qc-code/data/derivatives/labels/sub-UCL1/anat/sub-UCL1_UNIT1_label-disc.nii.gz']

Please check that the used suffix ['_label-disc'] is correct. If not, you can provide custom suffix using '-suffix-files-' flags.

Also check that the path specified by the '-path-label' flag points to the folder with the labels.

Enter your name (Firstname Lastname). It will be used to generate a json sidecar with each corrected file: Julien Cohen-Adad

FILES_LABEL:   0%|                                                                                                    | 0/6 [00:00<?, ?file/s]
No label file found, creating an empty mask: /Users/julien/code/coil-qc-code/data/derivatives/labels/sub-MGH1/anat/sub-MGH1_UNIT1_label-disc.nii.gz

--

Why skipping it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions