monocle2-python
Python port of the R monocle2 single-cell trajectory toolkit.
Installation
pip install monocle2-python # from PyPI
For local development:
git clone https://github.com/Bio-Babel/Monocle2-python.git
cd Monocle2-python
pip install -e ".[dev]"
Quickstart
import monocle2py as m2
cds = m2.load_hsmm_fpkm()
m2.estimate_size_factors(cds)
m2.estimate_dispersions(cds)
m2.reduce_dimension(cds, reduction_method="DDRTree")
m2.order_cells(cds)
m2.plot_cell_trajectory(cds, color_by="State")
Tutorials
Four runnable notebooks that reproduce the R monocle2 tutorials live under tutorials/:
| Notebook | Dataset |
|---|---|
V2_1_HSMM.ipynb |
HSMM myoblast differentiation |
V2_2_lung_BEAM.ipynb |
Lung epithelium BEAM walkthrough |
V2_3_Olsson_corrected.ipynb |
Olsson myeloid progenitors (WT + KOs) |
V2_4_Paul.ipynb |
Paul hematopoiesis |
License
Artistic-2.0, matching the upstream R monocle2.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
monocle2_python-2.9.0.tar.gz
(68.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file monocle2_python-2.9.0.tar.gz.
File metadata
- Download URL: monocle2_python-2.9.0.tar.gz
- Upload date:
- Size: 68.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
beb753fa901159965925c96254865db8f86e04932724bd9b97b472b91885d5b2
|
|
| MD5 |
385bd1d0deaa5e600e2ae7e1c6936287
|
|
| BLAKE2b-256 |
dfb9a5a0d2ea7a55cd436b902d6db0374392bc7e272e1541ec762fc4123f484a
|
File details
Details for the file monocle2_python-2.9.0-py3-none-any.whl.
File metadata
- Download URL: monocle2_python-2.9.0-py3-none-any.whl
- Upload date:
- Size: 84.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24757aa44140d209490821804d9f1d5ae5a1e28a68d5b5f4e9b89430f322725e
|
|
| MD5 |
4b9a4f6c83d377f43ff49c8682fd489b
|
|
| BLAKE2b-256 |
ba9037b6ca1ee0d80e59a9d19c464db4ec26523946efc88aa2fc4d60467cb7a6
|