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

Fix presence matrix calculation (and derived values) #1320

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ivirshup
Copy link
Collaborator

@ivirshup ivirshup commented Nov 26, 2024

Fixes #1284

I would like to add some more tests here, though it may not be necessary. These would probably be calculating these values directly from the source anndatas, and comparing them with the result.

I think there is also a broader code cleanup that could happen. Broadly, I find the statistics calculation hard to follow (many classes, deferred calculations). But what could be in scope is cleaning up unused attributes, classes, and code related to presence matrix construction.

@ivirshup ivirshup changed the title Ivirshup/n measured obs Fix presence matrix calculation (and derived values) Nov 26, 2024
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 91.32%. Comparing base (f32c274) to head (22cb4b8).

Files with missing lines Patch % Lines
...llxgene_census_builder/build_soma/validate_soma.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1320      +/-   ##
==========================================
- Coverage   91.36%   91.32%   -0.04%     
==========================================
  Files          82       82              
  Lines        6482     6488       +6     
==========================================
+ Hits         5922     5925       +3     
- Misses        560      563       +3     
Flag Coverage Δ
unittests 91.32% <75.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature_dataset_presence_matrix should include genes with 0 counts
1 participant