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

Implement Decipher model in external #3015

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

Implement Decipher model in external #3015

wants to merge 25 commits into from

Conversation

justjhong
Copy link
Contributor

CC @ANazaret

Implements Decipher model (https://github.com/azizilab/decipher, https://www.biorxiv.org/content/10.1101/2023.11.11.566719v1) into external/

For now, it only includes base implementation without many of the downstream workflows from the original implementation.
Includes minor non-breaking changes to the LowLevelPyroTrainingPlan.

Test: was able to approximately reproduce figures from the tutorial (https://github.com/azizilab/decipher/blob/main/examples/1-tutorial.ipynb), some of the v plots for several random seeds below:

Original implementation:
decipher_orig_0
decipher_orig_1030

New implementation:
decipher_tutorial_scvi_0
decipher_tutorial_scvi_1
decipher_tutorial_scvi_2
decipher_tutorial_scvi_3

@justjhong justjhong added the cuda tests Run test suite on CUDA label Oct 15, 2024
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 95.07576% with 13 lines in your changes missing coverage. Please review.

Project coverage is 84.55%. Comparing base (c53efe0) to head (089037c).

Files with missing lines Patch % Lines
src/scvi/external/decipher/_module.py 93.40% 6 Missing ⚠️
src/scvi/external/decipher/_components.py 89.36% 5 Missing ⚠️
src/scvi/external/decipher/_trainingplan.py 97.10% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3015      +/-   ##
==========================================
- Coverage   84.81%   84.55%   -0.26%     
==========================================
  Files         173      178       +5     
  Lines       14793    15057     +264     
==========================================
+ Hits        12547    12732     +185     
- Misses       2246     2325      +79     
Files with missing lines Coverage Δ
src/scvi/external/__init__.py 100.00% <100.00%> (ø)
src/scvi/external/decipher/__init__.py 100.00% <100.00%> (ø)
src/scvi/external/decipher/_model.py 100.00% <100.00%> (ø)
src/scvi/external/decipher/_trainingplan.py 97.10% <97.10%> (ø)
src/scvi/external/decipher/_components.py 89.36% <89.36%> (ø)
src/scvi/external/decipher/_module.py 93.40% <93.40%> (ø)

... and 1 file with indirect coverage changes

@justjhong
Copy link
Contributor Author

Not sure why the cuda tests are failing on import of the Decipher class. Any ideas? @canergen @ori-kron-wis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda tests Run test suite on CUDA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant