The Compositional Perturbation Autoencoder (CPA) is a deep generative framework to learn effects of perturbations at the single-cell level. CPA performs OOD predictions of unseen combinations of drugs, learns interpretable embeddings, estimates dose-response curves, and provides uncertainty estimates.
Importing cpa fails after following the installation tutorial due to the call to jax.random.KeyArray in ... which was already depracated in 0.4.16 and recently (Feb. 6th) removed in 0.4.24, see here for more details.
>>> import cpa[rank: 0] Global seed set to 0...[trace]...AttributeError: module 'jax.random' has no attribute 'KeyArray'
How to Reproduce
conda create -n cpa python=3.9
conda activate cpa
pip install git+https://github.com/theislab/cpa
python
>>> import cpa
Fix/Changes
Added jax version upper bound in pyproject.toml, also added same for jaxlib to avoid consistency errors for jax.
Issue
Encountered by @erialc-cal
Importing cpa fails after following the installation tutorial due to the call to jax.random.KeyArray in ... which was already depracated in 0.4.16 and recently (Feb. 6th) removed in 0.4.24, see here for more details.
>>> import cpa
[rank: 0] Global seed set to 0
...[trace]...
AttributeError: module 'jax.random' has no attribute 'KeyArray'
How to Reproduce
conda create -n cpa python=3.9
conda activate cpa
pip install git+https://github.com/theislab/cpa
python
>>> import cpa
Fix/Changes
Added jax version upper bound in pyproject.toml, also added same for jaxlib to avoid consistency errors for jax.