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

Update emd per matching sample metric #16

Merged
merged 19 commits into from
Feb 13, 2025

Conversation

ghar1821
Copy link
Contributor

@ghar1821 ghar1821 commented Jan 20, 2025

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:

    • Breaking changes
    • New functionality
    • Major changes
    • Minor changes
    • Bug fixes
  • Proposed changes are described in the CHANGELOG.md

  • CI Tests succeed and look good!

@ghar1821 ghar1821 marked this pull request as ready for review January 20, 2025 10:38
@ghar1821 ghar1821 requested review from rcannood and LuLeom January 20, 2025 10:38
@ghar1821 ghar1821 marked this pull request as draft January 20, 2025 12:08
@ghar1821 ghar1821 marked this pull request as ready for review January 20, 2025 12:16
@ghar1821 ghar1821 marked this pull request as draft February 5, 2025 23:26
@rcannood
Copy link
Member

rcannood commented Feb 6, 2025

Are you still working on this PR?

@ghar1821
Copy link
Contributor Author

ghar1821 commented Feb 6, 2025 via email

@ghar1821 ghar1821 marked this pull request as ready for review February 6, 2025 23:45
@ghar1821
Copy link
Contributor Author

ghar1821 commented Feb 6, 2025

@rcannood @LuLeom pull request ready for review. We may have to change how it is calculated internally after we meet Sophie and Katrien. I'll create a separate issue and pull request for that change.

Also, run_test_local ran successfully on my local machine.

Copy link
Member

@rcannood rcannood left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines 48 to 52
# test_setup:
# starter_file:
# samples_to_compare:
# - Tube1_Batch1_WT
# - Tube1_Batch2_WT
Copy link
Member

Choose a reason for hiding this comment

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

This can be removed

Suggested change
# test_setup:
# starter_file:
# samples_to_compare:
# - Tube1_Batch1_WT
# - Tube1_Batch2_WT

Comment on lines 55 to 62
# 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

Copy link
Member

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 ;)

Suggested change
# 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
@rcannood rcannood merged commit 86d42da into main Feb 13, 2025
2 checks passed
@rcannood rcannood deleted the add-emd-per-matching-sample-metric branch February 13, 2025 08:59
@rcannood rcannood mentioned this pull request Feb 13, 2025
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