Closed BrianLlll closed 2 years ago
@Cottoneyejoe95 , to fix this just need to copy setup_anndata
as inside here:
And then remove the global one that is imported here:
https://github.com/theislab/scgen/blob/ae4af373082b933ddf7c4733e38bbdfe656b2595/scgen/__init__.py#L3
and on this page:
https://github.com/theislab/scgen/blob/master/docs/api/index.rst
Dear @adamgayoso, I am having the same issue as Brian.
Following your suggestion, I copied the function code from the https://github.com/YosefLab/scvi-tools/blob/11ef44a043cca303a83413422bbebd4a1963bc0f/scvi/model/_scvi.py#L129-L141 beginning from the line 129 down to the line165 to my jypter notebook, but received this error File "/tmp/ipykernel_42033/933877342.py", line 2 @setup_anndata_dsp.dedent ^ IndentationError: unexpected indent
Would you be so kind as to give a more detailed instruction on how to exactly fix the issue?
Hi @adamgayoso, I also followed your suggestion to copy the setup_anndata function and use this function to register the object. However, I still had the same issue when I ran "scgen.SCGEN(train)" with the same error information as before. Could you pls kindly provide some more help on this issue? Thank you.
@SoloveyMaria @BrianLlll the solution I proposed is for developers of this package. For users, you just need to downgrade scvi-tools, using pip3 install --upgrade scvi-tools==0.13.0
. This will temporarily fix your issue until the devs fix the package
@adamgayoso It works finally!
thanks, @adamgayoso for the tip, I added 0.13.0
version now as a requirement for temporary fixing and will update it later.
@M0hammadL someone from our team will make a PR to fix
reopening
Hi, Thanks for your excellent contribution. I recently encountered a bug when I ran " scgen.SCGEN(train)". The error information is:
TypeError Traceback (most recent call last)