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:
- You are using version
0.14.x
where the docs do not show this. - What you see in the link you sent is indeed a bug in the docs. We will fix ASAP
1 Like