Skip to content

Commit 8b1a9c5

Browse files
Update notebook version (#824)
* Update notebook version * fix references * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixes and module update --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4519101 commit 8b1a9c5

File tree

7 files changed

+21
-12
lines changed

7 files changed

+21
-12
lines changed

docs/references.bib

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,17 @@ @article{Li-spatial:22
237237
year = {2022},
238238
}
239239

240+
@article{scperturb:24,
241+
title={scPerturb: harmonized single-cell perturbation data},
242+
author={Peidli, Stefan and Green, Tessa D and Shen, Ciyue and Gross, Torsten and Min, Joseph and Garda, Samuele and Yuan, Bo and Schumacher, Linus J and Taylor-King, Jake P and Marks, Debora S and others},
243+
journal={Nature Methods},
244+
volume={21},
245+
number={3},
246+
pages={531--540},
247+
year={2024},
248+
publisher={Nature Publishing Group US New York}
249+
}
250+
240251
@article{Jones-spatial:22,
241252
author = {Jones, Andrew and Townes, F. William and Li, Didong and Engelhardt, Barbara E.},
242253
publisher = {Cold Spring Harbor Laboratory},

src/moscot/backends/ott/output.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from typing import Any, Callable, List, Optional, Tuple, Union
22

3-
import jaxlib.xla_extension as xla_ext
4-
53
import jax
64
import jax.numpy as jnp
75
import numpy as np
@@ -209,7 +207,7 @@ def to(self, device: Optional[Device_t] = None) -> "OTTOutput": # noqa: D102
209207
else:
210208
idx = 0
211209

212-
if not isinstance(device, xla_ext.Device):
210+
if not isinstance(device, jax.Device):
213211
try:
214212
device = jax.devices(device)[idx]
215213
except IndexError:
@@ -441,7 +439,7 @@ def to(
441439
# else:
442440
# idx = 0
443441

444-
# if not isinstance(device, xla_ext.Device):
442+
# if not isinstance(device, jax.Device):
445443
# try:
446444
# device = jax.devices(device)[idx]
447445
# except IndexError as err:
@@ -509,7 +507,7 @@ def to(self, device: Optional[Device_t] = None) -> "GraphOTTOutput": # noqa: D1
509507
else:
510508
idx = 0
511509

512-
if not isinstance(device, xla_ext.Device):
510+
if not isinstance(device, jax.Device):
513511
try:
514512
device = jax.devices(device)[idx]
515513
except IndexError:

src/moscot/base/problems/birth_death.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def estimate_marginals(
188188
189189
Examples
190190
--------
191-
- See :doc:`../../notebooks/examples/problems/800_score_genes_for_marginals`
191+
- See :doc:`../../notebooks/examples/problems/TemporalProblem/800_score_genes_for_marginals`
192192
on examples how to use :meth:`~moscot.problems.time.TemporalProblem.score_genes_for_marginals`.
193193
194194
""" # noqa: D205

src/moscot/costs/_costs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class BarcodeDistance(BaseCost):
1818
"""Scaled `Hamming distance <https://en.wikipedia.org/wiki/Hamming_distance>`_ between barcodes.
1919
2020
.. seealso::
21-
- See :doc:`../../notebooks/examples/problems/700_barcode_distance` on how to use this cost
22-
in the :class:`~moscot.problems.time.LineageProblem`.
21+
- See :doc:`../../notebooks/examples/problems/LineageProblem/700_barcode_distance` on
22+
how to use this cost in the :class:`~moscot.problems.time.LineageProblem`.
2323
2424
Parameters
2525
----------
@@ -68,7 +68,7 @@ class LeafDistance(BaseCost):
6868
This class ignores `attr` which is always set to `uns`.
6969
7070
.. seealso::
71-
- See :doc:`../../notebooks/examples/problems/600_leaf_distance` on how to use this cost
71+
- See :doc:`../../notebooks/examples/problems/LineageProblem/600_leaf_distance` on how to use this cost
7272
in the :class:`~moscot.problems.time.LineageProblem`.
7373
7474
Parameters

src/moscot/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def sciplex(
369369
"""Perturbation dataset published in :cite:`srivatsan:20`.
370370
371371
Transcriptomes of A549, K562, and mCF7 cells exposed to 188 compounds.
372-
Data obtained from http://projects.sanderlab.org/scperturb/.
372+
Data obtained from :cite:`scperturb:24`.
373373
374374
Parameters
375375
----------

src/moscot/problems/spatiotemporal/_spatio_temporal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def prepare(
6767
.. seealso::
6868
- See :doc:`../../notebooks/tutorials/500_spatiotemporal` on how to
6969
prepare and solve the :class:`~moscot.problems.spatiotemporal.SpatioTemporalProblem`.
70-
- See :doc:`../../notebooks/examples/problems/800_score_genes_for_marginals` on how to
70+
- See :doc:`../../notebooks/examples/problems/TemporalProblem/800_score_genes_for_marginals` on how to
7171
:meth:`score genes for proliferation and apoptosis <score_genes_for_marginals>`.
7272
7373
Parameters

0 commit comments

Comments
 (0)