-
Notifications
You must be signed in to change notification settings - Fork 2
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
Issue of Conversion of Seurat object to CellScopes object #5
Comments
Thank you for your interest in CellScopes. To use the
CellScopes was developed on a Linux system (Ubuntu server 22.04) and its functionality on MacBook is untested. I will do a test later. If the issue is from the Julia version, we offer two alternative methods to run CellScopes: a. Julia 1.9 Version of CellScopes: Since CellScopes was originally built on Julia V1.7.3 and there are dependency issues with Julia 1.9, we have created a version for Julia 1.9. You can install it using the following Julia commands: using Pkg
Pkg.add(url="https://github.com/bicycle1885/Leiden.jl")
Pkg.add(url="https://github.com/HaojiaWu/CellScopes.jl#julia_v1_9") b. CellScopes can also be run on Docker. Here are the commands to pull and run the CellScopes Docker image: docker pull thehumphreyslab/cellscopes
docker run -it --rm thehumphreyslab/cellscopes Hope this helps. |
Hi, I was getting a similar error when trying to convert a SeuratObject to scRNAObject in CellScope. I figured out the issue was that my SeuratObject was made using Seurat v5 and thus the RNA assay was a v5 assay. I converted to the v5 assay to a v3 assay using this line of code in R: This got passed the BoundsError and I got a partial scRNAObject in CellScopes with "Available data: - Raw count - Normalized count". But, now get a Match.MatchFailure error with the following traceback:
This appears to be an issue with assigning the metadata from the SeuratObject to the scRNAObject. I think it also has to do with how the SeuratObject structure changed from v4 to v5. But I also get the same Match.MatchFailure error when trying to load my raw scRNAseq data directly into CellScopes, without trying to convert from the SeuratObject. |
I fixed it. Now CellScopes supports Seurat V5. You may need to reinstall the package. using Pkg;
Pkg.rm("CellScopes")
Pkg.add(url="https://github.com/bicycle1885/Leiden.jl")
Pkg.add(url="https://github.com/HaojiaWu/CellScopes.jl")
import CellScopes as cs
seurat_sc = cs.from_seurat("pbmc3k.rds";
data_type="scRNA",
assay="RNA", version="v5") |
I encountered a problem similar to those described when converting Visium data. Below are the details: I'm using Seurat v4 to manage my data, and I saved my Seurat object as follows:
However, when I try to convert this using the CellScopes package in Julia with the following code:
I have also attempted to convert a Seurat 5 Visium object and encountered similar errors. Any insights or guidance on resolving this would be greatly appreciated. |
I see. Your object is from Visium, not regular scRNA. I haven't tested Visium since upgrading this function to accommodate Seurat V5. I will take a look and let you know once I have it to work for visium (and perhaps xenium as well). |
@YuxiZhang-0113 @Emily-Stranger
For Visium:
For Xenium:
|
Thank you very much for your detailed response. Based on your previous suggestions, I generated a CSV file with meta information processed by Seurat and Scanpy and inserted it into the CellScopes object. This allows me to read Seurat information in CellScopes. However, the ability to directly convert is also significant because many authors do not provide complete datasets, for example, they may provide only location information without any images. I often use Seurat to read the data. If conversion is possible, it would enable me to utilize the powerful functionalities of CellScopes. This leads me to another question: does CellScopes have a subset function similar to Seurat? For example, in Seurat, I often use: How can I subset the spots or barcodes I want in CellScopes? Additionally, I think the Thank you very much for your assistance. Your efforts are greatly appreciated and make a significant difference to the community. Best regards, |
Hello CellScopes team,
I've encountered an issue when I tried to convert an Seurat Object to CellScopes object.
Here is the traceback:
But I'm sure that the name of assay in the rds file I used is "RNA", and it's also an Seurat Object.
I'm new to Julia and couldn't figure out which steps I missed or how to solve this error. I'm running Julia v1.9.3 on Macbook. Hope you can help.
Best,
Emily
The text was updated successfully, but these errors were encountered: