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

Confusing behaviour if labels are present #84

Open
jcohenadad opened this issue Apr 14, 2024 · 0 comments
Open

Confusing behaviour if labels are present #84

jcohenadad opened this issue Apr 14, 2024 · 0 comments

Comments

@jcohenadad
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant