-
Notifications
You must be signed in to change notification settings - Fork 22
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
memento #918
Draft
atolopko-czi
wants to merge
83
commits into
main
Choose a base branch
from
atol/memento/epic
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
memento #918
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Migrated code from https://github.com/mincheoly/memento-cxg/blob/atol/codify-and-compare-notebooks/ - Reorganized code to fit this repo, splitting api and builder into api/ and tools/ dirs, repsectively - Added type hints - Updated docs
- add all Census obs metadata attributes as cube dimensions - remove unused estimator columns - add test fixture code to extract a small subset of a Census Experiment for local testing of the memento estimators cube
- use TileDB categorical types
- fix TileDB handling of Pandas categoricals - fix approx_size_factors filtering - add assertion sanity checks for debugging - add cube validator
- add validation for "all obs dims present" - cleanup debug assertions
- add missing suspension_type dim - compute for all features
…/877-cube-schema-updates--simplify-joins
- add regression test for cube builder, testing against a previously built and committed cube - add parameterized build() method - add CLI entrypoint for cube builder
- Ensure the size_factors for obs group is created correctly, with one row per obs row - add validation check for n_obs
too noisy as warnings, and not useful during production runs
- use single concat() call instead of a join - factor out code into sub-methods for better profiling insight
If starting with a new cube, do not bother to check whether obs group needs to be computed; assume it does
This avoids having to return result to parent process
Obs groups (i.e., cube rows) are now represented by an obs_group_joinid that can be used to join the estimators to the original obs dimension columns. This saves considerable space, as the obs dimension values do not need to be repeated for each feature (gene). Also, Group By operations should be more efficient now that grouping can occur on a single value.
…pr-profiler-polars
not faster
also, uncomment step 2 and 3
- fix dummies matrix - pass reduced obs_groups_df columns to child processes - fix mypy typing errors - disable profiling decorators (not mypy-friendly, as is)
add static test fixtures
…ne-census into atol/memento/epic
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #918 +/- ##
==========================================
- Coverage 81.32% 80.59% -0.74%
==========================================
Files 73 75 +2
Lines 5553 5715 +162
==========================================
+ Hits 4516 4606 +90
- Misses 1037 1109 +72
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
* Defer python package version pinning for memento cube builder * Add unit test for memento differential expression * Fix markdown lint complaints * Regenerate test fixtures * Update unit test * Use a different default covariate list --------- Co-authored-by: atarashansky <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For #847