Estimate cell state dynamics with fluctuation
Project description
vicdyf: Variational Inference of Cell state Dynamics with fluctuation
vicdyf is intended to estimated cell state dynamics with fluctuation from spliced and unspliced transcript abundance.
Instalation
You can install vicdyf using pip command from your shell.
pip install vicdyf
Usage
You need to prepare an AnnData object which includes raw spliced and unspliced counts as layers named as spliced and unspliced like a scvelo data set. Apply vicdyf workflow on the object:
import vicdyf
adata = vicdyf.workflow.estimate_dynamics(adata)
vicdyf.workflow.estimate_dynamics have optional parameters as below:
use_genes: gene names for dynamics estimation (default:None)first_epoch: number of epochs for deriving latent representation (default:500)second_epoch: number of epochs for optimizing dynamics (default:500)param_path: a path where the optimized parameters ofvicdyf.modules.VicDyfare stored (default:.vicdyf_opt_pt)lr: Learning rate for Adam optimizer of pytorchbatch_size: Size of mini batches in the optimization procedurenum_workers: Number of workers in data loader of pytorchval_ratio: proportion of validation data settest_ratio: proportion of test data setmodel_params: a dictionary which describe the configuration ofvicdyf.modules.VicDyf. The keys of the dictionary is as below:z_dim: dimension of latent representation (default10)enc_z_h_dim: dimension of hidden units in encoder layers (default50)enc_d_h_dim: dimension of hidden units in dynamics encoder layers (default50)dec_z_h_dim: dimension of hidden units in encoder layers (default50)num_enc_z_layers: the layer number of the encoder (default2)num_enc_z_layers: the layer number of the dynamics encoder (default2)num_dec_z_layers: the layer number of the decoder (default2)
Here, the AnnData object acuires sevral elements in layers, obsm, obsp and obs.
layers:vicdyf_expression: Expected gene expression levelvicdyf_mean_velocity: Expected gene expression changevicdyf_velocity: Stochasticaly sampled gene expression changevicdyf_fluctuation: Fluctuation level for each gene
obsm:X_vicdyf_z: Stochasticaly smapled latent representationX_vicdyf_zl: Expected latent representationX_vicdyf_d: Stochasticaly smapled changes of latent representationX_vicdyf_dl: Expected changes of latent representationX_vicdyf_umap: 2D UMAP embeddings of expected latent representation for visualizationX_vicdyf_sdumap: 2D UMAP embeddings ofX_vicdyf_dfor visualizationX_vicdyf_mdumap: 2D UMAP embeddings ofX_vicdyf_dlfor visualization
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 vicdyf-0.0.8.tar.gz.
File metadata
- Download URL: vicdyf-0.0.8.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71f538bb7cddaaf080842d341125e994a51e795ac64e0220ee1eb40a5bde7208
|
|
| MD5 |
1e3d6ee92a16d9c4b0bbdfa85c5f6e0f
|
|
| BLAKE2b-256 |
d5df95f9a160b5befeec65bf40aac656beed4d4cf12a9d54a7eab2d9ae66325c
|
File details
Details for the file vicdyf-0.0.8-py3-none-any.whl.
File metadata
- Download URL: vicdyf-0.0.8-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d055af2ce56f8b48399bd80633fe32bddccfecfc1402b0c29fe9d8fdd0243269
|
|
| MD5 |
583d9e071b27fc84751ba5f893dd4fa2
|
|
| BLAKE2b-256 |
3410c207a704342f48aefdf0782147389d7e2f00d69367e038ecbb43b3e3001b
|