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

feat: Mudata support for MultiVI #3038

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

Conversation

ori-kron-wis
Copy link
Collaborator

Added mudata support for MULTIVI + tests

@ori-kron-wis ori-kron-wis added the on-merge: backport to 1.2.x on-merge: backport to 1.2.x label Nov 6, 2024
@ori-kron-wis ori-kron-wis added this to the scvi-tools 1.2 milestone Nov 6, 2024
@ori-kron-wis ori-kron-wis self-assigned this Nov 6, 2024
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 86.15385% with 9 lines in your changes missing coverage. Please review.

Project coverage is 84.58%. Comparing base (c2e3714) to head (711ec54).

Files with missing lines Patch % Lines
src/scvi/model/_multivi.py 85.71% 5 Missing ⚠️
src/scvi/module/_multivae.py 90.90% 2 Missing ⚠️
src/scvi/data/fields/_arraylike_field.py 80.00% 1 Missing ⚠️
src/scvi/model/_totalvi.py 50.00% 1 Missing ⚠️
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     
Files with missing lines Coverage Δ
src/scvi/_constants.py 100.00% <100.00%> (ø)
src/scvi/data/fields/_arraylike_field.py 93.10% <80.00%> (-0.32%) ⬇️
src/scvi/model/_totalvi.py 86.86% <50.00%> (+0.03%) ⬆️
src/scvi/module/_multivae.py 83.01% <90.90%> (+0.79%) ⬆️
src/scvi/model/_multivi.py 75.08% <85.71%> (+2.82%) ⬆️
---- 🚨 Try these New Features:

@ori-kron-wis ori-kron-wis changed the title (feat) : Mudata support for MultiVI feat: Mudata support for MultiVI Nov 13, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
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)
Copy link
Member

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)
Copy link
Member

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

Copy link
Member

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

Copy link
Member

@canergen canergen left a 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.

CHANGELOG.md Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-merge: backport to 1.2.x on-merge: backport to 1.2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants