scvi-tools: AttributeError: module 'scvi' has no attribute 'data'
Hi, I’ve got my data to a point where I’d like to use scVI for batch correction, but for some reason it’s not working properly. scVI by itself imports just fine, but I’m not sure why it’s not recognizing any scvi functions.
scvi.data.setup_anndata(data, layer="raw")
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-36-294ac6c9fc9d> in <module>
----> 1 scvi.data.setup_anndata(data, layer="raw")
AttributeError: module 'scvi' has no attribute 'data'
Versions:
scvi-tools 0.7.0a5
Thanks!
Ashley
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 28 (11 by maintainers)
installing scvi-tools allows
import scvi
. This would be similar for scikit-learn andsklearn
.The old
scvi
package that you see is a previous iteration of this work that you do not wantIt did, thanks! Running
model.train()
now 😃Thanks! I used pip to install it yesterday so I assumed everything was up to date, was this a super recent change and I just got unlucky?