Skip to content

Add metric avg batch r2 #36

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

Merged
merged 4 commits into from
Mar 12, 2025
Merged

Add metric avg batch r2 #36

merged 4 commits into from
Mar 12, 2025

Conversation

LuLeom
Copy link
Contributor

@LuLeom LuLeom commented Mar 11, 2025

Describe your changes

  • Added average_batch_r2 metric : This metric quantifies, on average, how strongly the batch (B) explains the variation in each measured marker across all paired samples. There are two variation to the metric:
    1. average_batch_r2_global does not take into account cell-type
    2. average_batch_r2_ct does
  • Added helper function remove_unlabelled

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!

@LuLeom LuLeom marked this pull request as ready for review March 11, 2025 15:04
@LuLeom LuLeom merged commit 818cd97 into main Mar 12, 2025
4 checks passed
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.

1 participant