Skip to content

Commit 5132328

Browse files
authored
Update docs (#1161)
* Update docstrings * Update `README.md` * Update `api.rst` Adds VELOVI and metabolic labeling inference. * Update `installation.rst` * Update `index.rst`
1 parent 632c60b commit 5132328

39 files changed

+291
-177
lines changed

README.md

+67-33
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@
1313

1414
<img src="https://user-images.githubusercontent.com/31883718/67709134-a0989480-f9bd-11e9-8ae6-f6391f5d95a0.png" width="400px" align="left">
1515

16-
**scVelo** is a scalable toolkit for RNA velocity analysis in single cells, based on
17-
[Bergen et al. (Nature Biotech, 2020](https://doi.org/10.1038/s41587-020-0591-3).
18-
19-
RNA velocity enables the recovery of directed dynamic information by leveraging splicing kinetics.
20-
scVelo generalizes the concept of RNA velocity
21-
[La Manno et al., Nature, 2018](https://doi.org/10.1038/s41586-018-0414-6>)
22-
by relaxing previously made assumptions with a stochastic and a dynamical model that solves the full
23-
transcriptional dynamics. It thereby adapts RNA velocity to widely varying specifications such as non-stationary populations.
24-
25-
scVelo is compatible with scanpy\_ and hosts efficient implementations of all RNA velocity models.
16+
**scVelo** is a scalable toolkit for RNA velocity analysis in single cells; RNA velocity
17+
enables the recovery of directed dynamic information by leveraging splicing kinetics
18+
<sup>[1](https://doi.org/10.1038/s41586-018-0414-6)</sup>. scVelo collects different
19+
methods for inferring RNA velocity using an expectation-maximization framework
20+
<sup>[2](https://doi.org/10.1038/s41587-020-0591-3)</sup>, deep generative modeling
21+
<sup>[3](https://doi.org/10.1038/s41592-023-01994-w)</sup>,
22+
or metabolically labeled transcripts<sup>[4](https://doi.org/10.1101/2023.07.19.549685)</sup>.
2623

2724
## scVelo's key applications
2825

@@ -32,35 +29,72 @@ scVelo is compatible with scanpy\_ and hosts efficient implementations of all RN
3229
- estimate reaction rates of transcription, splicing and degradation.
3330
- use statistical tests, e.g., to detect different kinetics regimes.
3431

35-
scVelo has, for instance, recently been used to study immune response in COVID-19
36-
patients and dynamic processes in human lung regeneration. Find out more in this list of
37-
[application examples](https://scholar.google.com/scholar?cites=18195185735875895912).
38-
39-
## Latest news
40-
41-
- Aug/2021: [Perspectives paper out in MSB](https://doi.org/10.15252/msb.202110282)
42-
- Feb/2021: scVelo goes multi-core
43-
- Dec/2020: Cover of [Nature Biotechnology](https://www.nature.com/nbt/volumes/38)
44-
- Nov/2020: Talk at [Single Cell Biology](https://coursesandconferences.wellcomegenomecampus.org/our-events/single-cell-biology-2020/)
45-
- Oct/2020: [Helmholtz Best Paper Award](https://twitter.com/ICBmunich/status/1318611467722199041)
46-
- Oct/2020: Map cell fates with [CellRank](https://cellrank.org)
47-
- Sep/2020: Talk at [Single Cell Omics](https://twitter.com/fabian_theis/status/1305621028056465412)
48-
- Aug/2020: [scVelo out in Nature Biotech](https://www.helmholtz-muenchen.de/en/aktuelles/latest-news/press-information-news/article/48658/index.html)
49-
50-
## References
51-
52-
[La Manno _et al._ (2018), RNA velocity of single cells, Nature](https://doi.org/10.1038/s41586-018-0414-6).
53-
54-
[Bergen _et al._ (2020), Generalizing RNA velocity to transient cell states through dynamical modeling, Nature Biotech](https://doi.org/10.1038/s41587-020-0591-3).
55-
56-
[Bergen _et al._ (2021), RNA velocity - current challenges and future perspectives, Molecular Systems Biology](https://doi.org/10.15252/msb.202110282).
32+
## Citing scVelo
33+
34+
If you include or rely on scVelo when publishing research, please adhere to the
35+
following citation guide:
36+
37+
### EM and steady-state model
38+
39+
If you use the _EM_ (_dynamical_) or _steady-state model_, cite
40+
41+
```bibtex
42+
@article{Bergen2020,
43+
title = {Generalizing RNA velocity to transient cell states through dynamical modeling},
44+
volume = {38},
45+
ISSN = {1546-1696},
46+
url = {http://dx.doi.org/10.1038/s41587-020-0591-3},
47+
DOI = {10.1038/s41587-020-0591-3},
48+
number = {12},
49+
journal = {Nature Biotechnology},
50+
publisher = {Springer Science and Business Media LLC},
51+
author = {Bergen, Volker and Lange, Marius and Peidli, Stefan and Wolf, F. Alexander and Theis, Fabian J.},
52+
year = {2020},
53+
month = aug,
54+
pages = {1408–1414}
55+
}
56+
```
57+
58+
### veloVI
59+
60+
If you use _veloVI_ (_VI model_), cite
61+
62+
```bibtex
63+
@article{Gayoso2023,
64+
title = {Deep generative modeling of transcriptional dynamics for RNA velocity analysis in single cells},
65+
ISSN = {1548-7105},
66+
url = {http://dx.doi.org/10.1038/s41592-023-01994-w},
67+
DOI = {10.1038/s41592-023-01994-w},
68+
journal = {Nature Methods},
69+
publisher = {Springer Science and Business Media LLC},
70+
author = {Gayoso, Adam and Weiler, Philipp and Lotfollahi, Mohammad and Klein, Dominik and Hong, Justin and Streets, Aaron and Theis, Fabian J. and Yosef, Nir},
71+
year = {2023},
72+
month = sep
73+
}
74+
```
75+
76+
### RNA velocity inference through metabolic labeling information
77+
78+
If you use the implemented method for estimating RNA velocity from metabolic labeling
79+
information, cite
80+
81+
```bibtex
82+
@article{Weiler2023,
83+
title = {Unified fate mapping in multiview single-cell data},
84+
url = {http://dx.doi.org/10.1101/2023.07.19.549685},
85+
DOI = {10.1101/2023.07.19.549685},
86+
publisher = {Cold Spring Harbor Laboratory},
87+
author = {Weiler, Philipp and Lange, Marius and Klein, Michal and Pe’er, Dana and Theis, Fabian J.},
88+
year = {2023},
89+
month = jul
90+
}
91+
```
5792

5893
## Support
5994

6095
Found a bug or would like to see a feature implemented? Feel free to submit an
6196
[issue](https://github.com/theislab/scvelo/issues/new/choose).
6297
Have a question or would like to start a new discussion? Head over to
6398
[GitHub discussions](https://github.com/theislab/scvelo/discussions).
64-
In either case, you can also always send us an [email](mailto:[email protected]).
6599
Your help to improve scVelo is highly appreciated.
66100
For further information visit [scvelo.org](https://scvelo.org).

docs/source/api.rst

+13
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Tools (tl)
7676

7777
tl.recover_dynamics
7878
tl.differential_kinetic_test
79+
tl.VELOVI
7980

8081
**Dynamical genes**
8182

@@ -105,6 +106,18 @@ Tools (tl)
105106
tl.velocity_confidence
106107
tl.score_genes_cell_cycle
107108

109+
Inference from metabolic labeling information
110+
---------
111+
112+
.. autosummary::
113+
:toctree: .
114+
115+
inference.get_labeling_time_mask
116+
inference.get_labeling_times
117+
inference.get_n_neighbors
118+
inference.get_obs_dist_argsort
119+
inference.get_parameters
120+
108121

109122
Plotting (pl)
110123
-------------

docs/source/index.rst

+65-45
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ scVelo - RNA velocity generalized through dynamical modeling
99

1010
.. include:: _key_contributors.rst
1111

12-
**scVelo** is a scalable toolkit for RNA velocity analysis in single cells, based on
13-
`Bergen et al. (Nature Biotech, 2020) <https://doi.org/10.1038/s41587-020-0591-3>`_.
14-
15-
RNA velocity enables the recovery of directed dynamic information by leveraging splicing kinetics.
16-
scVelo generalizes the concept of RNA velocity
17-
(`La Manno et al., Nature, 2018 <https://doi.org/10.1038/s41586-018-0414-6>`_)
18-
by relaxing previously made assumptions with a stochastic and a dynamical model that solves the full
19-
transcriptional dynamics. It thereby adapts RNA velocity to widely varying specifications such as non-stationary populations.
20-
21-
scVelo is compatible with Scanpy_ and hosts efficient implementations of all RNA velocity models.
12+
**scVelo** is a scalable toolkit for RNA velocity analysis in single cells; RNA velocity
13+
enables the recovery of directed dynamic information by leveraging splicing kinetics
14+
:cite:p:`LaManno18`. scVelo collects different
15+
methods for inferring RNA velocity using an expectation-maximization framework
16+
:cite:p:`Bergen20`, deep generative modeling :cite:p:`Gayoso2023`,
17+
or metabolically labeled transcripts :cite:p:`Weiler2023`.
2218

2319
scVelo's key applications
2420
^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -28,40 +24,77 @@ scVelo's key applications
2824
- estimate reaction rates of transcription, splicing and degradation.
2925
- use statistical tests, e.g., to detect different kinetics regimes.
3026

31-
scVelo has, for instance, recently been used to study immune response in COVID-19
32-
patients and dynamic processes in human lung regeneration. Find out more in this list of
33-
`application examples <https://scholar.google.com/scholar?cites=18195185735875895912>`_.
3427

35-
Latest news
36-
^^^^^^^^^^^
37-
- Aug/2021: `Perspectives paper out in MSB <https://doi.org/10.15252/msb.202110282>`_
38-
- Feb/2021: scVelo goes multi-core
39-
- Dec/2020: Cover of `Nature Biotechnology <https://www.nature.com/nbt/volumes/38>`_
40-
- Nov/2020: Talk at `Single Cell Biology <https://coursesandconferences.wellcomegenomecampus.org/our-events/single-cell-biology-2020/>`_
41-
- Oct/2020: `Helmholtz Best Paper Award <https://twitter.com/ICBmunich/status/1318611467722199041>`_
42-
- Oct/2020: Map cell fates with `CellRank <https://cellrank.org>`_
43-
- Sep/2020: Talk at `Single Cell Omics <https://twitter.com/fabian_theis/status/1305621028056465412>`_
44-
- Aug/2020: `scVelo out in Nature Biotech <https://www.helmholtz-muenchen.de/en/aktuelles/latest-news/press-information-news/article/48658/index.html>`_
28+
Citing scVelo
29+
^^^^^^^^^^^^^
30+
31+
If you include or rely on scVelo when publishing research, please adhere to the
32+
following citation guide:
33+
34+
**EM and steady-state model**
35+
36+
If you use the *EM* (*dynamical*) or *steady-state model*, cite
37+
38+
.. code-block:: bibtex
39+
40+
@article{Bergen2020,
41+
title = {Generalizing RNA velocity to transient cell states through dynamical modeling},
42+
volume = {38},
43+
ISSN = {1546-1696},
44+
url = {http://dx.doi.org/10.1038/s41587-020-0591-3},
45+
DOI = {10.1038/s41587-020-0591-3},
46+
number = {12},
47+
journal = {Nature Biotechnology},
48+
publisher = {Springer Science and Business Media LLC},
49+
author = {Bergen, Volker and Lange, Marius and Peidli, Stefan and Wolf, F. Alexander and Theis, Fabian J.},
50+
year = {2020},
51+
month = aug,
52+
pages = {1408–1414}
53+
}
54+
55+
56+
**veloVI**
4557

46-
References
47-
^^^^^^^^^^
48-
La Manno *et al.* (2018), RNA velocity of single cells, `Nature <https://doi.org/10.1038/s41586-018-0414-6>`_.
58+
If you use *veloVI* (*VI model*), cite
4959

50-
Bergen *et al.* (2020), Generalizing RNA velocity to transient cell states through dynamical modeling,
51-
`Nature Biotech <https://doi.org/10.1038/s41587-020-0591-3>`_.
60+
.. code-block:: bibtex
5261
53-
Bergen *et al.* (2021), RNA velocity - current challenges and future perspectives,
54-
`Molecular Systems Biology <https://doi.org/10.15252/msb.202110282>`_.
62+
@article{Gayoso2023,
63+
title = {Deep generative modeling of transcriptional dynamics for RNA velocity analysis in single cells},
64+
ISSN = {1548-7105},
65+
url = {http://dx.doi.org/10.1038/s41592-023-01994-w},
66+
DOI = {10.1038/s41592-023-01994-w},
67+
journal = {Nature Methods},
68+
publisher = {Springer Science and Business Media LLC},
69+
author = {Gayoso, Adam and Weiler, Philipp and Lotfollahi, Mohammad and Klein, Dominik and Hong, Justin and Streets, Aaron and Theis, Fabian J. and Yosef, Nir},
70+
year = {2023},
71+
month = sep
72+
}
73+
74+
**RNA velocity inference through metabolic labeling information**
75+
76+
If you use the implemented method for estimating RNA velocity from metabolic labeling
77+
information, cite
78+
79+
.. code-block:: bibtex
80+
81+
@article{Weiler2023,
82+
title = {Unified fate mapping in multiview single-cell data},
83+
url = {http://dx.doi.org/10.1101/2023.07.19.549685},
84+
DOI = {10.1101/2023.07.19.549685},
85+
publisher = {Cold Spring Harbor Laboratory},
86+
author = {Weiler, Philipp and Lange, Marius and Klein, Michal and Pe’er, Dana and Theis, Fabian J.},
87+
year = {2023},
88+
month = jul
89+
}
5590
5691
Support
5792
^^^^^^^
5893
Found a bug or would like to see a feature implemented? Feel free to submit an
5994
`issue <https://github.com/theislab/scvelo/issues/new/choose>`_.
6095
Have a question or would like to start a new discussion? Head over to
6196
`GitHub discussions <https://github.com/theislab/scvelo/discussions>`_.
62-
In either case, you can also always send us an `email <mailto:[email protected]>`_.
6397
Your help to improve scVelo is highly appreciated.
64-
For further information visit `scvelo.org <https://scvelo.org>`_.
6598

6699

67100
.. toctree::
@@ -103,25 +136,12 @@ For further information visit `scvelo.org <https://scvelo.org>`_.
103136
.. |Docs| image:: https://readthedocs.org/projects/scvelo/badge/?version=latest
104137
:target: https://scvelo.readthedocs.io
105138

106-
.. |travis| image:: https://travis-ci.org/theislab/scvelo.svg?branch=main
107-
:target: https://travis-ci.org/theislab/scvelo
108-
109139
.. _Scanpy: https://scanpy.readthedocs.io
110140

111-
.. _calendly: https://calendly.com/scvelo
112-
113141
.. |br| raw:: html
114142

115143
<br/>
116144

117-
.. |meet| raw:: html
118-
119-
<!-- Calendly link widget begin -->
120-
<link href="https://assets.calendly.com/assets/external/widget.css" rel="stylesheet">
121-
<script src="https://assets.calendly.com/assets/external/widget.js" type="text/javascript"></script>
122-
<a href="" onclick="Calendly.initPopupWidget({url: 'https://calendly.com/scvelo'});return false;">here</a>
123-
<!-- Calendly link widget end -->
124-
125145
.. |dim| raw:: html
126146

127147
<span class="__dimensions_badge_embed__" data-id="pub.1129830274" data-style="small_rectangle"></span>

docs/source/installation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Development Version
1919

2020
To work with the latest development version, install from GitHub_ using::
2121

22-
pip install git+https://github.com/theislab/scvelo@develop
22+
pip install git+https://github.com/theislab/scvelo@main
2323

2424
or::
2525

2626
git clone https://github.com/theislab/scvelo && cd scvelo
27-
git checkout --track origin/develop
27+
git checkout --track origin/main
2828
pip install -e .
2929

3030
``-e`` is short for ``--editable`` and links the package to the original cloned

docs/source/perspectives/index.rst

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ transcriptional boost in erythroid lineage, and misleading arrow projections in
2121

2222
Notebook: `Perspectives <Perspectives>`_
2323

24-
|
2524
Kinetic parameter analysis
2625
^^^^^^^^^^^^^^^^^^^^^^^^^^
2726
.. image:: https://user-images.githubusercontent.com/31883718/130656606-00bd44be-9071-4008-be1b-244fa9c2d244.png

docs/source/references.bib

+21
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,24 @@ @article{Wolf19
6262
title = {{PAGA}: graph abstraction reconciles clustering with trajectory inference through a topology preserving map of single cells},
6363
journal = {Genome Biology}
6464
}
65+
66+
@article{Gayoso2023,
67+
title = {Deep generative modeling of transcriptional dynamics for RNA velocity analysis in single cells},
68+
url = {http://dx.doi.org/10.1038/s41592-023-01994-w},
69+
doi = {10.1038/s41592-023-01994-w},
70+
journal = {Nature Methods},
71+
publisher = {Springer Science and Business Media LLC},
72+
author = {Adam Gayoso and Philipp Weiler and Mohammad Lotfollahi and Dominik Klein and Justin Hong and Aaron Streets and Fabian J. Theis and Nir Yosef},
73+
year = {2023},
74+
month = sep
75+
}
76+
77+
@article{Weiler2023,
78+
title = {Unified fate mapping in multiview single-cell data},
79+
url = {http://dx.doi.org/10.1101/2023.07.19.549685},
80+
DOI = {10.1101/2023.07.19.549685},
81+
publisher = {Cold Spring Harbor Laboratory},
82+
author = {Philipp Weiler and Marius Lange and Michal Klein and Dana Pe{\textquotesingle}er and Fabian J. Theis},
83+
year = {2023},
84+
month = jul
85+
}

0 commit comments

Comments
 (0)