Skip to content

Commit 54fd613

Browse files
authored
docs: updated for mlx (#3766)
1 parent df7f4da commit 54fd613

File tree

26 files changed

+78
-71
lines changed

26 files changed

+78
-71
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
typehints_defaults = "braces"
9494
autodoc_mock_imports = []
9595
if os.environ.get("READTHEDOCS") == "True":
96-
autodoc_mock_imports += ["hyperopt", "ray", "ray.tune", "scib_metrics", "muon"]
96+
autodoc_mock_imports += ["hyperopt", "ray", "ray.tune", "scib_metrics", "muon", "mlx"]
9797
try:
9898
import scvi.autotune
9999
except Exception:

docs/user_guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ scvi-tools is composed of models that can perform one or many analysis tasks. In
189189
* - :doc:`/user_guide/models/amortizedlda`
190190
- Topic modeling
191191
- :cite:p:`Blei03`
192-
* - :doc:`/tutorials/notebooks/hub/scvi_hub_intro_and_download`
192+
* - :doc:`Scvi-Hub </tutorials/notebooks/hub/scvi_hub_intro_and_download>`
193193
- Scvi-hub: an actionable repository for model-driven single-cell analysis usign Hugging Face Hub
194194
- :cite:p:`Ergen25-2`
195195

docs/user_guide/models/resolvi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The latent variables, along with their description, are summarized in the follow
8484

8585
```{eval-rst}
8686
.. list-table::
87-
:widths: 20 90 15of ce
87+
:widths: 20 90 15 45
8888
:header-rows: 1
8989
9090
* - Latent variable

src/scvi/external/contrastivevi/_module.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ def loss(
545545
Returns
546546
-------
547547
An scvi.module.base.LossOutput instance that records the following:
548+
548549
loss
549550
One-dimensional tensor for overall loss used for optimization.
550551
reconstruction_loss

src/scvi/external/cytovi/_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class CYTOVI(
102102
required when analyzing overlapping panels with missing values.
103103
encoder_marker_list
104104
Optional list of markers to use for encoding. Must be a subset of backbone markers
105-
if `encode_backbone_only` is True.
105+
if `encode_backbone_only` is True.
106106
prior_mixture
107107
If True, uses a mixture of Gaussians as a prior in the latent space (MoG prior).
108108
prior_mixture_k
@@ -126,7 +126,7 @@ class CYTOVI(
126126
An adversarial classifier loss can be used to encourage batch-invariance in the latent space.
127127
If the data includes missing values, ensure that `nan_layer` is correctly registered using
128128
:meth:`~scvi.external.CYTOVI.setup_anndata`. This is handled automatically when using
129-
scvi.external.cytovi.merge_batches().
129+
scvi.external.cytovi.merge_batches().
130130
131131
See further usage examples in the following tutorials:
132132

src/scvi/external/decipher/_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ def compute_gene_patterns(
292292
-------
293293
The gene patterns for the trajectory.
294294
Dictionary keys:
295+
295296
- `mean`: the mean gene expression pattern
296297
- `q25`: the 25% quantile of the gene expression pattern
297298
- `q75`: the 75% quantile of the gene expression pattern

src/scvi/external/methylvi/_base_components.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ def differential_methylation(
308308
Returns
309309
-------
310310
Differential methylation DataFrame with the following columns:
311+
311312
proba_de
312313
the probability of the region being differentially methylated
313314
is_de_fdr

src/scvi/external/methylvi/_methylanvi_model.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -202,18 +202,16 @@ def setup_mudata(
202202
203203
Examples
204204
--------
205-
METHYLANVI.setup_mudata(
206-
mdata,
207-
mc_layer="mc",
208-
cov_layer="cov",
209-
labels_key="CellType",
210-
unlabeled_category="Unknown",
211-
methylation_contexts=["mCG", "mCH"],
212-
categorical_covariate_keys=["Platform"],
213-
modalities={
214-
"categorical_covariate_keys": "mCG"
215-
},
216-
)
205+
>>> METHYLANVI.setup_mudata(
206+
... mdata,
207+
... mc_layer="mc",
208+
... cov_layer="cov",
209+
... labels_key="CellType",
210+
... unlabeled_category="Unknown",
211+
... methylation_contexts=["mCG", "mCH"],
212+
... categorical_covariate_keys=["Platform"],
213+
... modalities={"categorical_covariate_keys": "mCG"},
214+
... )
217215
218216
"""
219217
if modalities is None:

src/scvi/external/methylvi/_methylvi_model.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,14 @@ def setup_mudata(
157157
158158
Examples
159159
--------
160-
MethylVI.setup_mudata(
161-
mdata,
162-
mc_layer="mc",
163-
cov_layer="cov",
164-
batch_key="Platform",
165-
methylation_modalities=['mCG', 'mCH'],
166-
modalities={
167-
"batch_key": "mCG"
168-
},
169-
)
160+
>>> MethylVI.setup_mudata(
161+
... mdata,
162+
... mc_layer="mc",
163+
... cov_layer="cov",
164+
... batch_key="Platform",
165+
... methylation_modalities=["mCG", "mCH"],
166+
... modalities={"batch_key": "mCG"},
167+
... )
170168
171169
"""
172170
if modalities is None:

src/scvi/external/mrvi/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from scvi.external.mrvi_torch._module import TorchMRVAE as MRVAE
2+
13
from ._model import MRVI
24

3-
__all__ = ["MRVI"]
5+
__all__ = ["MRVI", "MRVAE"]

0 commit comments

Comments
 (0)