-
Notifications
You must be signed in to change notification settings - Fork 355
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
feat: Mudata support for MultiVI #3038
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
…tiVI-MuData # Conflicts: # tests/model/test_multivi.py
for more information, see https://pre-commit.ci
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3038 +/- ##
==========================================
+ Coverage 84.53% 84.58% +0.05%
==========================================
Files 178 178
Lines 15062 15100 +38
==========================================
+ Hits 12732 12772 +40
+ Misses 2330 2328 -2
|
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
protein_adata2 = synthetic_iid(n_genes=50) | ||
mdata2 = MuData({"rna": adata2, "protein": protein_adata2}) | ||
mdata2.obs["_indices"] = np.arange(mdata2.n_obs) | ||
model.get_elbo(mdata2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get this test. We should test all functions with mdata2
mdata2 = MuData({"rna": adata2, "protein": protein_adata2}) | ||
adata2.obs.batch = adata2.obs.batch.cat.rename_categories(["batch_1", "batch_0"]) | ||
mdata2.obs["_indices"] = np.arange(mdata2.n_obs) | ||
model.get_elbo(mdata2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here all tests with mdata2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be fixed. Call other functions with mdata2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check whether we need muon.
# Conflicts: # CHANGELOG.md
for more information, see https://pre-commit.ci
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
for more information, see https://pre-commit.ci
Added mudata support for MULTIVI + tests