Skip to main content

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 of vicdyf.modules.VicDyfare stored (default: .vicdyf_opt_pt)
  • lr: Learning rate for Adam optimizer of pytorch
  • batch_size: Size of mini batches in the optimization procedure
  • num_workers: Number of workers in data loader of pytorch
  • val_ratio: proportion of validation data set
  • test_ratio: proportion of test data set
  • model_params: a dictionary which describe the configuration of vicdyf.modules.VicDyf. The keys of the dictionary is as below:
    • z_dim: dimension of latent representation (default 10)
    • enc_z_h_dim: dimension of hidden units in encoder layers (default 50)
    • enc_d_h_dim: dimension of hidden units in dynamics encoder layers (default 50)
    • dec_z_h_dim: dimension of hidden units in encoder layers (default 50)
    • num_enc_z_layers: the layer number of the encoder (default 2)
    • num_enc_z_layers: the layer number of the dynamics encoder (default 2)
    • num_dec_z_layers: the layer number of the decoder (default 2)

Here, the AnnData object acuires sevral elements in layers, obsm, obsp and obs.

  • layers:
    • vicdyf_expression: Expected gene expression level
    • vicdyf_mean_velocity: Expected gene expression change
    • vicdyf_velocity: Stochasticaly sampled gene expression change
    • vicdyf_fluctuation: Fluctuation level for each gene
  • obsm:
    • X_vicdyf_z: Stochasticaly smapled latent representation
    • X_vicdyf_zl: Expected latent representation
    • X_vicdyf_d: Stochasticaly smapled changes of latent representation
    • X_vicdyf_dl: Expected changes of latent representation
    • X_vicdyf_umap: 2D UMAP embeddings of expected latent representation for visualization
    • X_vicdyf_sdumap: 2D UMAP embeddings of X_vicdyf_d for visualization
    • X_vicdyf_mdumap: 2D UMAP embeddings of X_vicdyf_dl for visualization

Metadata

Release files for vicdyf-tiisaishima 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vicdyf-tiisaishima 0.0.2
File Size Uploaded Provenance Actions
vicdyf-tiisaishima-0.0.2.tar.gz 9.0 kB Without provenance Details for vicdyf-tiisaishima-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vicdyf-tiisaishima 0.0.2
File Interpreter ABI Platform Actions
vicdyf_tiisaishima-0.0.2-py3-none-any.whl Python 3 none any Details for vicdyf_tiisaishima-0.0.2-py3-none-any.whl

Total release size: 18.6 kB

Release files / vicdyf-tiisaishima-0.0.2.tar.gz

Download URL vicdyf-tiisaishima-0.0.2.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c2f44695d51c4a44ef60c5ad51a5c5bf9f24fab55b9413683a21d2cd33d93029
BLAKE2b-256 checksum
How to use checksums
c08f7c470bbdfc52ed2d900f95a9b9ffb473119f55c205458d53f803b237c33b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Release files / vicdyf_tiisaishima-0.0.2-py3-none-any.whl

Download URL vicdyf_tiisaishima-0.0.2-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d49c4a2b5ce5f3ea2fc88e1a2dbeac9f20108adc0881b2d4cfc4e21cf6ab9c05
BLAKE2b-256 checksum
How to use checksums
18c15ca3ba0de04fe60b5173fae0e111d42a0515bb7f7d1198969e5fb3c17f1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Security for vicdyf-tiisaishima 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page