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

Ukbb mri neck to knee ozery #155

Open
wants to merge 44 commits into
base: ukbb_mri_neck_to_knee
Choose a base branch
from

Conversation

michalozeryflato
Copy link
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
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.

@@ -40,6 +40,7 @@ def __init__(
dynamic_pipeline: Optional[PipelineDefault] = None,
cacher: Optional[SamplesCacher] = None,
allow_uncached_sample_morphing: bool = False,
always_return_dict = True,
Copy link
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.

@@ -100,7 +100,7 @@ def _collect_values_to_list(self, samples: List[str], key: str) -> Tuple[List, b
if self._raise_error_key_missing:
raise Exception(f"Error: key {key} does not exist in sample {index}: {sample}")
else:
value = None
Copy link
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