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

refactor(model): move base model utils to new files #2731

Merged
merged 3 commits into from Apr 17, 2024
Merged

Conversation

martinkim0
Copy link
Contributor

@martinkim0 martinkim0 commented Apr 17, 2024

  • moves scvi.model.base._utils._load_legacy_saved_files to scvi.model.base._save_load._load_legacy_saved_files
  • moves scvi.model.base._utils._load_saved_files to scvi.model.base._save_load._load_saved_files
  • moves scvi.model.base._utils._initialize_model to scvi.model.base._save_load._initialize_model
  • moves scvi.model.base._utils._validate_var_names to scvi.model.base._save_load._validate_var_names
  • moves scvi.model.base._utils._prepare_obs to scvi.model.base._de_core._prepare_obs
  • moves scvi.model.base._utils._de_core to scvi.model.base._de_core._de_core
  • moves scvi.model.base._utils._fdr_de_prediction to scvi.model.base._de_core_._fdr_de_prediction
  • refactors imports accordingly

@martinkim0 martinkim0 added the on-merge: backport to 1.2.x on-merge: backport to 1.2.x label Apr 17, 2024
Copy link

codecov bot commented Apr 17, 2024

Codecov Report

Attention: Patch coverage is 97.70115% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 88.87%. Comparing base (462a861) to head (3548e93).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2731      +/-   ##
==========================================
- Coverage   89.38%   88.87%   -0.52%     
==========================================
  Files         159      160       +1     
  Lines       13294    13299       +5     
==========================================
- Hits        11883    11819      -64     
- Misses       1411     1480      +69     
Files Coverage Δ
src/scvi/external/contrastivevi/_model.py 80.40% <100.00%> (ø)
src/scvi/external/poissonvi/_model.py 74.64% <100.00%> (ø)
src/scvi/hub/_metadata.py 93.47% <100.00%> (ø)
src/scvi/model/_multivi.py 73.52% <100.00%> (ø)
src/scvi/model/_peakvi.py 89.34% <100.00%> (ø)
src/scvi/model/_totalvi.py 87.99% <100.00%> (ø)
src/scvi/model/base/_archesmixin.py 93.93% <100.00%> (ø)
src/scvi/model/base/_base_model.py 93.40% <100.00%> (-0.02%) ⬇️
src/scvi/model/base/_rnamixin.py 95.61% <100.00%> (ø)
src/scvi/model/base/_save_load.py 83.11% <100.00%> (ø)
... and 2 more

... and 2 files with indirect coverage changes

@martinkim0 martinkim0 merged commit a80c315 into main Apr 17, 2024
12 checks passed
@martinkim0 martinkim0 deleted the refactor-1 branch April 17, 2024 20:00
meeseeksmachine pushed a commit to meeseeksmachine/scvi-tools that referenced this pull request Apr 17, 2024
martinkim0 added a commit that referenced this pull request Apr 17, 2024
…tils to new files) (#2732)

Backport PR #2731: refactor(model): move base model utils to new files

Co-authored-by: Martin Kim <46072231+martinkim0@users.noreply.github.com>
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.

None yet

1 participant