Skip to content

Ukbb mri neck to knee ozery#155

Open
michalozeryflato wants to merge 44 commits into
ukbb_mri_neck_to_kneefrom
ukbb_mri_neck_to_knee_ozery
Open

Ukbb mri neck to knee ozery#155
michalozeryflato wants to merge 44 commits into
ukbb_mri_neck_to_kneefrom
ukbb_mri_neck_to_knee_ozery

Conversation

@michalozeryflato
Copy link
Copy Markdown
Collaborator

No description provided.

michalozeryflato and others added 30 commits July 26, 2022 13:53
…eid_*_<visit>_0", since in kidney MRI there could be 2 zip files per patient
…-ml into ukbb_mri_neck_to_knee_ozery

� Conflicts:
�	examples/fuse_examples/imaging/classification/ukbb_prostate/runner.py
…to ukbb_mri_neck_to_knee_ozery

� Conflicts:
�	examples/fuse_examples/imaging/classification/ukbb_prostate/cohort_and_label_def.py
�	examples/fuse_examples/imaging/classification/ukbb_prostate/conf/config_prostate_cancer.yaml
�	examples/fuse_examples/imaging/classification/ukbb_prostate/conf/config_prostatectomy.yaml
�	examples/fuse_examples/imaging/classification/ukbb_prostate/runner.py
�	fuseimg/datasets/ukbb_neck_to_knee.py
Copy link
Copy Markdown
Collaborator

@mosheraboh mosheraboh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Itai!
I should review just the files if fuse core (under fuse dir), right?
I think that those modifications can be very useful - let's make them a bit more generic though.

dynamic_pipeline: Optional[PipelineDefault] = None,
cacher: Optional[SamplesCacher] = None,
allow_uncached_sample_morphing: bool = False,
always_return_dict = True,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's changed the allow_uncached_sample_morphing to mode instead of boolean.
We can have a mode that goes over all the samples to filter Nones or to split samples.
And a mode that skips it and returns whatever the pipeline generates.
See if you can come up with good names for the argument and the modes.

if self._raise_error_key_missing:
raise Exception(f"Error: key {key} does not exist in sample {index}: {sample}")
else:
value = None
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that your use-case deals with a sample that is None and missing a key in one of the samples.
Cann you comment about 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

Successfully merging this pull request may close these issues.

2 participants