-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update emd per matching sample metric #16
Conversation
give out max instead of everything
Are you still working on this PR? |
Yes I am. I have to change some stuff in it so it works with the new file schema. I'll change it from draft once it is ready.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
src/metrics/emd/config.vsh.yaml
Outdated
# test_setup: | ||
# starter_file: | ||
# samples_to_compare: | ||
# - Tube1_Batch1_WT | ||
# - Tube1_Batch2_WT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed
# test_setup: | |
# starter_file: | |
# samples_to_compare: | |
# - Tube1_Batch1_WT | |
# - Tube1_Batch2_WT |
src/metrics/emd/config.vsh.yaml
Outdated
# Keep for now for future metrics' reference if required | ||
# arguments: | ||
# - name: "--samples_to_compare" | ||
# type: "string" | ||
# description: 2 samples to compare. | ||
# required: true | ||
# multiple: true | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove if you don't need it ;)
# Keep for now for future metrics' reference if required | |
# arguments: | |
# - name: "--samples_to_compare" | |
# type: "string" | |
# description: 2 samples to compare. | |
# required: true | |
# multiple: true |
removed unnecessary flags
Describe your changes
Update EMD per sample metric so it doesn't need the sample flag and the layer flag.
The samples to calculate the metric is automatically inferred from the input_integrated and input_validation datasets.
Input_validation is needed because for some donors, the matching samples may not be given to the batch correction algorithm but is required to compute the metric.
Layer from each dataset is set to "integrated" and "preprocessed" automatically. This is ok as these layers are specified in respective files' yaml.
Checklist before requesting a review
I have performed a self-review of my code
Check the correct box. Does this PR contain:
Proposed changes are described in the CHANGELOG.md
CI Tests succeed and look good!