-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor codebase to use AnnData (Fixes #56) #74
Merged
Merged
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
For reading / writing / converting to and from CSV / DataFrame / AnnData
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #74 +/- ##
=======================================
- Coverage 96.3% 93.1% -3.2%
=======================================
Files 5 7 +2
Lines 193 308 +115
Branches 35 50 +15
=======================================
+ Hits 186 287 +101
- Misses 5 11 +6
- Partials 2 10 +8 ☔ View full report in Codecov by Sentry. |
…s format elsewhere)
…drDFM into jvivian/issue56
This was referenced Mar 29, 2024
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.
Motivation
H5AD
is a superior format for cases where you need to track both observational and variable metadata (along with some numeric data matrixModules
covid19.py
Moved all project-related code to this module (e.g.
get_df()
). The principle function used from this module is nowget_project_h5ad
.io.py
Module for handling interoperability between CSVs/DataFrames and AnnData/H5AD
processing.py
Module that prepares all data to run in DFM (such as differencing variables and normalization) via the
DataProcessor
class.dfm.py
Module that handles running the model via a
ModelRunner
. A complete example of running the model across all 50 states: