theislab / cpa

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.
BSD 3-Clause "New" or "Revised" License
76 stars 17 forks source link

AttributeError: module 'cpa' has no attribute 'CPA' #17

Closed rudyrichard closed 9 months ago

rudyrichard commented 1 year ago

Hi - thanks for your awesome work!

I have not succeeded in running the Sci-Plex 2 Notebook on colab I am getting:

AttributeError Traceback (most recent call last) in <cell line: 1>() ----> 1 cpa_real.CPA.setup_anndata(adata, 2 perturbation_keys={ 3 'perturbation': 'condition', 4 'dosage': 'dose_val', 5 },

AttributeError: module 'cpa' has no attribute 'CPA'

when running: cpa.CPA.setup_anndata(adata, perturbation_keys={ 'perturbation': 'condition', 'dosage': 'dose_val', }, categorical_covariate_keys=['cell_type'], control_key='control', )

Anything that I can do to fix? Thanks a lot!