Reproducing scVI

Hello, I would like to thank you for creating scvi-tools.

I was studying your tool and trying to reproduce scVI. I tried to follow the developer guide here Constructing a probabilistic module — scvi-tools to build a simpler version of scVI. But I got this error when I tried to initialize the model with adata:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-9-83be500ff09b> in <module>
----> 1 model = SCVI(adata)
      2 model

TypeError: Can't instantiate abstract class SCVI with abstract methods setup_anndata

I would appreciate it if you could give me some hints about what I might have done wrong.

I also tried to copy and paste the original scVI source code but also see this error.

Thank you in advance!

Hi,

Thank you for using scvi-tools.

It looks like you are using an old version of the docs which isn’t compatible with the latest version of scvi-tools. You should be able to toggle the docs to the latest version in the bottom right corner of the page.

Let me know if that works!

Thank you so much! The latest version’s code indeed works fine. Have a nice day!

1 Like