Skip to main content

About

iVAE is an enhanced representation learning method designed for capturing lineage features and gene expression patterns in single-cell transcriptomics. Compared to a standard VAE, iVAE incorporates a pivotal interpretative module that increases the correlation between latent components. This enhanced correlation helps the model learn gene expression patterns in single-cell data where correlations are present.

Installation

PyPI

You can install the iVAE package using:

pip install iVAE

This repository is hosted at iVAE GitHub Repository.

Usage

You can customize the behavior of the script by providing additional arguments:

  • --epochs: Number of training epochs (default: 1000)
  • --layer: Layer to use from the AnnData object (default: 'counts')
  • --percent: Percent parameter value (default: 0.01)
  • --irecon: Irecon parameter value (default: 0.0)
  • --beta: Beta parameter value (default: 1.0)
  • --dip: Dip parameter value (default: 0.0)
  • --tc: TC parameter value (default: 0.0)
  • --info: Info parameter value (default: 0.0)
  • --hidden_dim: Hidden dimension size (default: 128)
  • --latent_dim: Latent dimension size (default: 10)
  • --i_dim: i dimension size (default: 2)
  • --lr: Learning rate (default: 1e-4)
  • --data_path: Path to the data file (default: 'data.h5ad')
  • --output_dir: Directory to save the results (default: 'iVAE_output')

Example of running with custom parameters:

iVAE --epochs 500 --layer 'counts' --data_path 'path/to/your/data.h5ad' --output_dir 'iVAE_output'

Output

After running the script, the latent space representations are saved in the specified output directory (iVAE_output by default):

  • iembed.npy: Contains the output from the get_iembed() function.
  • latent.npy: Contains the output from the get_latent() function.

These files are NumPy arrays that can be loaded using numpy.load() for further analysis.

Example of Loading Output Data

You can load and analyze the output data using the following Python code:

import numpy as np

# Load the iembed data
iembed = np.load('iVAE_output/iembed.npy')

# Load the latent data
latent = np.load('iVAE_output/latent.npy')

# Perform your analysis
print("iembed shape:", iembed.shape)
print("latent shape:", latent.shape)

API docs

Documentation Status

The documentation is available. Click the doc for details.

License

PyPI

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For questions or issues, please contact Zeyu Fu at fuzeyu99@126.com.


Release files for iVAE 0.0.5

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

Source distribution (sdist)

Source distribution for iVAE 0.0.5
File Size Uploaded
iVAE-0.0.5.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iVAE 0.0.5
File Interpreter ABI Platform
iVAE-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 23.1 kB

Release files / iVAE-0.0.5.tar.gz

Download URL iVAE-0.0.5.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eb0bd0f82735fc95b8941d49d6858579245cc9951bfc3b985ca456ae9b79bf7c
BLAKE2b-256 checksum
How to use checksums
81953b3f17c397c04bee7fe78cfd77e723e05dc4909c69362f9da194c99fe7a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / iVAE-0.0.5-py3-none-any.whl

Download URL iVAE-0.0.5-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc263cc82eabeff4b606f48d3c5b3559dbdff877f441b85c155c344f324218d2
BLAKE2b-256 checksum
How to use checksums
070f0a45c04c92b758f56906abcc4d51334eed761adbfdba49e02e2e71766752
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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