Labels_key not available for scvi.model.MULTIVI.setup_anndata()

scvi.model.MULTIVI.setup_anndata(adata, batch_key='orig.ident', labels_key = 'scpred_prediction')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: setup_anndata() got an unexpected keyword argument 'labels_key'

Hi @zhenzuo2 – this is correct behavior as MultiVI makes no use of labels

https://docs.scvi-tools.org/en/latest/api/reference/scvi.model.MULTIVI.setup_anndata.html Then this manual should be incorrect? Also the source code is not accurate?

I think two things are happening:

  1. You are using version 0.14.x where the docs do not show this.
  2. What you see in the link you sent is indeed a bug in the docs. We will fix ASAP
1 Like