Skip to content

Commit

Permalink
Merge branch 'main' into Ori-get_norm_func_property
Browse files Browse the repository at this point in the history
  • Loading branch information
ori-kron-wis authored Mar 6, 2025
2 parents 0279bd7 + bf8daf4 commit c04bc91
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/api/developer.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,5 @@ Utility functions used by scvi-tools.
utils.setup_anndata_dsp
utils.attrdict
model.get_max_epochs_heuristic
external.decipher.utils.Trajectory
```
8 changes: 4 additions & 4 deletions docs/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ @article{Martens2023
publisher={Nature Publishing Group}
}

@article{Nazaret23,
title={Deep generative model deciphers derailed trajectories in acute myeloid leukemia},
author={Nazaret, Achille and Fan, Joy Linyue and Lavallee, Vincent-Philippe and Cornish, Andrew E and Kiseliovas, Vaidotas and Masilionis, Ignas and Chun, Jaeyoung and Bowman, Robert L and Eisman, Shira E and Wang, James and others},
@article{Nazaret24,
title={Joint representation and visualization of derailed cell states with Decipher},
author={Nazaret, Achille and Fan, Joy Linyue and Lavall{\'e}e, Vincent-Philippe and Burdziak, Cassandra and Cornish, Andrew E and Kiseliovas, Vaidotas and Bowman, Robert L and Masilionis, Ignas and Chun, Jaeyoung and Eisman, Shira E and others},
journal={bioRxiv},
pages={2023--11},
year={2023},
year={2024},
publisher={Cold Spring Harbor Laboratory},
doi = {10.1101/2023.11.11.566719}
}
Expand Down
1 change: 1 addition & 0 deletions docs/tutorials/index_scrna.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ notebooks/scrna/contrastiveVI_tutorial
notebooks/scrna/scanvi_fix
notebooks/scrna/MrVI_tutorial
notebooks/scrna/sysVI
notebooks/scrna/decipher_tutorial
notebooks/scrna/velovi
```
3 changes: 3 additions & 0 deletions docs/user_guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ scvi-tools is composed of models that can perform one or many analysis tasks. In
* - :doc:`/user_guide/models/sysvi`
- Integrating single-cell RNA-seq datasets with substantial batch effects
- :cite:p:`Hrovatin23`
* - :doc:`/user_guide/models/decipher`
- Joint representation and visualization of derailed cell states with Decipher
- :cite:p:`Nazaret24`
* - :doc:`/user_guide/models/velovi`
- Deep generative modeling of transcriptional dynamics for RNA velocity analysis in single cells
- :cite:p:`GayosoWeiler23`
Expand Down
20 changes: 20 additions & 0 deletions docs/user_guide/models/decipher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Decipher

:::{note}
This page is under construction.
:::

**decipher** (Python class {class}`~scvi.external.Decipher`) is a ...

The advantages of Decipher are:

- ...

The limitations of Decipher include:

- ...

```{topic} Tutorials:
- {doc}`/tutorials/notebooks/scrna/decipher_tutorial`
```
8 changes: 5 additions & 3 deletions src/scvi/external/decipher/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


class Decipher(PyroSviTrainMixin, BaseModelClass):
"""Decipher model for single-cell data analysis :cite:p:`Nazaret23`.
"""Decipher model for single-cell data analysis :cite:p:`Nazaret24`.
Parameters
----------
Expand Down Expand Up @@ -238,7 +238,8 @@ def compute_decipher_time(
cluster_obs_key : str
The key in adata.obs containing cluster assignments.
trajectory : Trajectory
A Trajectory object containing the trajectory information.
A :class:`~scvi.external.decipher.utils.Trajectory` object containing
the trajectory information.
n_neighbors : int
The number of neighbors to use for the KNN regression.
Expand Down Expand Up @@ -280,7 +281,8 @@ def compute_gene_patterns(
adata : AnnData
The annotated data matrix.
trajectory : Trajectory
A Trajectory object containing the trajectory information.
A :class:`~scvi.external.decipher.utils.Trajectory` object containing
the trajectory information.
l_scale : float
The library size scaling factor.
n_samples : int
Expand Down

0 comments on commit c04bc91

Please sign in to comment.