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: add get_normalized_expression to more models #3121

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

Conversation

ori-kron-wis
Copy link
Collaborator

@ori-kron-wis ori-kron-wis commented Jan 5, 2025

add this down stream analysis function to several models which don't have it yet

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

codecov bot commented Jan 8, 2025

Codecov Report

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

Project coverage is 82.66%. Comparing base (abfcbfc) to head (5193e4d).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/scvi/module/_mrdeconv.py 63.63% 4 Missing ⚠️
src/scvi/external/gimvi/_module.py 75.00% 3 Missing ⚠️
src/scvi/external/cellassign/_module.py 93.33% 1 Missing ⚠️
src/scvi/nn/_base_components.py 66.66% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (abfcbfc) and HEAD (5193e4d). Click for more details.

HEAD has 27 uploads less than BASE
Flag BASE (abfcbfc) HEAD (5193e4d)
30 3
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3121      +/-   ##
==========================================
- Coverage   89.43%   82.66%   -6.78%     
==========================================
  Files         185      185              
  Lines       16182    16206      +24     
==========================================
- Hits        14473    13397    -1076     
- Misses       1709     2809    +1100     
Files with missing lines Coverage Δ
src/scvi/external/cellassign/_model.py 92.30% <100.00%> (ø)
src/scvi/external/gimvi/_model.py 91.70% <100.00%> (ø)
src/scvi/external/poissonvi/_model.py 72.72% <ø> (+1.47%) ⬆️
src/scvi/model/_autozi.py 95.40% <100.00%> (ø)
src/scvi/model/_condscvi.py 95.65% <ø> (-0.10%) ⬇️
src/scvi/model/_destvi.py 85.83% <100.00%> (+0.36%) ⬆️
src/scvi/model/_peakvi.py 88.03% <100.00%> (ø)
src/scvi/model/base/_rnamixin.py 94.53% <100.00%> (+0.06%) ⬆️
src/scvi/module/_autozivae.py 79.22% <ø> (ø)
src/scvi/module/_peakvae.py 93.51% <100.00%> (+2.00%) ⬆️
... and 5 more

... and 27 files with indirect coverage changes

@ori-kron-wis ori-kron-wis changed the title feat: add get_normalized expression to more models feat: add get_normalized-expression to more models Jan 8, 2025
@ori-kron-wis ori-kron-wis changed the title feat: add get_normalized-expression to more models feat: add get_normalized_expression to more models Jan 8, 2025
@ori-kron-wis ori-kron-wis requested a review from canergen January 8, 2025 13:32
@ori-kron-wis ori-kron-wis marked this pull request as ready for review January 8, 2025 13:32
@@ -33,7 +33,7 @@
B = 10


class CellAssign(UnsupervisedTrainingMixin, BaseModelClass):
class CellAssign(UnsupervisedTrainingMixin, BaseModelClass, RNASeqMixin, VAEMixin):
Copy link
Member

Choose a reason for hiding this comment

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

Is CellAssign intended for these functions? I would remove it here.

z = self.V_encoder(*encoder_input)
# z = self.gamma_encoder(*encoder_input)

return {
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't really make sense. Please remove VAEmixin from DestVI

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