-
Notifications
You must be signed in to change notification settings - Fork 30
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
Cannot compute joint embedding on RNA and ATAC object #350
Comments
You need to convert numpy array to scipy sparse matrix. You can do that by |
Thanks for the reply! I did discover that you can extract the matrix how you show above (admittedly by accident). I just tried this:
Unfortunately I am still met with the same error:
What I did next was basically build a new AnnData object after extracting all the elements, like so:
Where
With
It worked! I move to re-running UMAP:
Unfortunately I am met with this error:
Then—under closer inspection—I realized
Any ideas on how to proceed from here? |
I think it is the 'rna' matrix that causes the problem. |
When analyzing multi-modal data, it seems like the RNA expression matrix does not also transfer, only the UMAP embeddings? Is this true? How do we connect the expression to the differentially accesible regions? |
I am following this tutorial to jointly embed my single-nucelus multiome capture from 10X. I have already filtered both RNA and ATAC objects to the same cells, and made sure that the barcodes are identical, then I process with the embedding:
Once running the above cell I am met with this error:
It seems like the issue is that
atac.X
is aPyArray Element
. Keep in mindatac
is an AnnDataSet object that I processed with SnapATAC2 and then converted to an AnnData object in order to co-embed these ATAC data with the RNA data from the same capture.I tried many ways to convert the PyArray to a Numpy array in order to have it be compatible, but I was unsuccessful. It seems as if I could do this if I went into Rust to modulate this PyArray, but I have no experience in Rust. Any help with this would be greatly appreciate it. Thank you!
The text was updated successfully, but these errors were encountered: