-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scVIIntegration Issue with jax Module #7275
Comments
I think that I solved my own problem, but want to leave this up in case anybody else has a similar issue. The problem was that jax and jaxlib were not recent enough versions. I used conda install for scvi-tools and scanpy, which downloads version 0.3.25. However, scvi-tools requires version 0.4.3 or higher. I tried conda uninstall to remove jax and jaxlib and then manually conda installed them, but this did not solve the problem. It wasn't until I used pip3 install jax and pip3 install jaxlib that versions 0.4.8 and 0.4.7 were installed, respectively. Lastly, after jax and jaxlib were updated, I encountered a similar error with requests, and after using pip3 install requests I was able to run scVIIntegration. |
Hi @B198096-2022
Have you any ideas on how to get past this? I am using a Mac with M1 chip |
This is how I generated the environment which is currently working for me:
and then in R
|
Hello Everyone,
I've been having some trouble getting scVIIntegration to work on Seurat v5. I am trying to get the vignette example with the pbmcsca data set to run (https://satijalab.org/seurat/articles/seurat5_integration.html), and will then swap in my own data set.
I was originally getting the error at the beginning of this thread (#7164): object 'scVIIntegration' not found, and was able to resolve this as well as update scanpy in my conda env, so thank you to everyone in that thread for finding the solutions to those errors!!!
I am now able to get scVIIntegration running, but it quickly throws the following error:
Global seed set to 0
Error: AttributeError: module 'jax' has no attribute 'Device'
I have tried resetting RStudio and running everything in a clean environment, but it did not resolve the error.
I am just running the code that is presented in the vignette, but I had to make a few changes due to errors.
1st I added UpdateSeuratObject(object = obj) after loading in the object. This is because I was getting the following error when running subset(obj, nFeature_RNA > 1000):
Error in slot(object = object, name = s) :
no slot of name "images" for this object of class "Seurat"
Upon adding the UpdateSeuratObject step this error was resolved
I also skipped the RunAzimuth step as it was throwing the following error:
Error in validObject(object = object) :
invalid class “DimReduc” object: colnames for ‘feature.loadings’ must start with reduction key (refdr_)
With these changes, I was able to run RPCAIntegration just fine, both on the example data set as well as my own data. So I tried using the same pre-processing code and running scVIIntegration, which I pasted below:
And when I run this everything seems fine until IntegrateLayers returns the error:
Global seed set to 0
Error: AttributeError: module 'jax' has no attribute 'Device'
Do any of you have any ideas as to what could be causing this error? I checked and both jax and jaxlib are installed in my scvi-env (both version 0.3.25) which is the only thing I can think of. I installed scvi-tools using conda per their installation tutorial (linked in the vignette) and then installed scanpy in the scvi-env, and the jax module was installed in the environment as a result of this.
Thanks :)
Max
Session infro below:
The text was updated successfully, but these errors were encountered: