Conditional out-of-distribution generation for unpaired data using transfer VAE (Bioinformatics, 2020).
A Keras (tensorflow < 2.0) implementation of trVAE (transfer Variational Autoencoder) .
trVAE can be used for style transfer in images, predicting perturbations responses and batch-removal for single-cell RNA-seq.
- For pytorch implementation check Here
Before installing trVAE package, we suggest you to create a new Python 3.6 (or 3.7) virtual env (or conda env) with the following steps:
pip install virtualenv
virtualenv trvae-env --python=python3.6
To install the latest version from PyPI, simply use the following bash script:
pip install trvae
or install the development version via pip:
pip install git+https://github.com/theislab/trvae.git
or you can first install flit and clone this repository:
git clone https://github.com/theislab/trVAE
cd trVAE
pip install -r requirements
python setup.py install
- For perturbation prediction and batch-removal check this example from Haber et al.
In order to reproduce paper results visit here.
If you found trVAE useful please consider citing the published manuscript.