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: nicheVI release #3172

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

feat: nicheVI release #3172

wants to merge 14 commits into from

Conversation

LevyNat
Copy link
Collaborator

@LevyNat LevyNat commented Feb 3, 2025

No description provided.

Copy link

codecov bot commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 71.72414% with 246 lines in your changes missing coverage. Please review.

Project coverage is 80.26%. Comparing base (c538dbc) to head (f4c8da2).

Files with missing lines Patch % Lines
...hevi/differential_expression/_marker_classifier.py 27.47% 66 Missing ⚠️
src/scvi/external/nichevi/_module.py 73.77% 59 Missing ⚠️
src/scvi/external/nichevi/_vaemixin.py 0.00% 32 Missing ⚠️
src/scvi/external/nichevi/_model.py 85.77% 31 Missing ⚠️
src/scvi/external/nichevi/_rnamixin.py 0.00% 24 Missing ⚠️
...ernal/nichevi/differential_expression/_de_utils.py 73.33% 12 Missing ⚠️
.../nichevi/differential_expression/_niche_de_core.py 90.72% 9 Missing ⚠️
src/scvi/external/nichevi/_log_likelihood.py 75.00% 8 Missing ⚠️
...hevi/differential_expression/_results_dataclass.py 84.21% 3 Missing ⚠️
src/scvi/external/nichevi/_components.py 96.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3172      +/-   ##
==========================================
- Coverage   80.69%   80.26%   -0.43%     
==========================================
  Files         193      206      +13     
  Lines       17079    17949     +870     
==========================================
+ Hits        13782    14407     +625     
- Misses       3297     3542     +245     
Files with missing lines Coverage Δ
src/scvi/external/__init__.py 100.00% <100.00%> (ø)
src/scvi/external/nichevi/__init__.py 100.00% <100.00%> (ø)
src/scvi/external/nichevi/_constants.py 100.00% <100.00%> (ø)
...ternal/nichevi/differential_expression/__init__.py 100.00% <100.00%> (ø)
src/scvi/external/nichevi/_components.py 96.42% <96.42%> (ø)
...hevi/differential_expression/_results_dataclass.py 84.21% <84.21%> (ø)
src/scvi/external/nichevi/_log_likelihood.py 75.00% <75.00%> (ø)
.../nichevi/differential_expression/_niche_de_core.py 90.72% <90.72%> (ø)
...ernal/nichevi/differential_expression/_de_utils.py 73.33% <73.33%> (ø)
src/scvi/external/nichevi/_rnamixin.py 0.00% <0.00%> (ø)
... and 4 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ori-kron-wis ori-kron-wis changed the title code for nicheVI feat: nicheVI release Feb 3, 2025
raise ValueError("Must provide either n_obs_minibatch or reconstruction_loss")

default = 0 * self.loss
if self.reconstruction_loss is None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to me those next lines can be simply re-written in a for loop of different attributes, all is going under same thing (but I guess we need to fix also original class)

Copy link
Collaborator

@ori-kron-wis ori-kron-wis Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a tutorial and model description doc are missing

Copy link
Collaborator

@ori-kron-wis ori-kron-wis Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is also already exists for the main use of DE. why do we need to have this duplications?
Can't it be inherited from updated DE , init and adjusted locally with those parameters? will save alot of code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too many changes due to the neighbor computations, renamed it to _niche_de_core

@ori-kron-wis ori-kron-wis added the on-merge: backport to 1.2.x on-merge: backport to 1.2.x label Feb 12, 2025
@ori-kron-wis ori-kron-wis added on-merge: backport to 1.3.x on-merge: backport to 1.3.x and removed on-merge: backport to 1.2.x on-merge: backport to 1.2.x labels Feb 25, 2025
@ori-kron-wis
Copy link
Collaborator

please also add changelog record, links to tutorials and model descriptions (see other models that were merged recently like resolvi, sysvi)

@canergen canergen added the draft label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft on-merge: backport to 1.3.x on-merge: backport to 1.3.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants