-
Notifications
You must be signed in to change notification settings - Fork 4
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
Troubleshooting Converting Seurat Object to Hummus Object with 10X-Multiome Dataset #4
Comments
Dear Daniel, Thanks you for your interest in HuMMuS ! This error might be related to the versions of Seurat and Signac. Is it a Seurat v5 object ? You can maybe give a first try to start a new RSession, then precise Let me know if enforcing the Seurat assay version works ! :) Best, |
Hi Rémi, I apologize for my delayed response here (had some urgent family matter). I ran the scripts as you suggested, but I'm still getting the same error when I eventually get to creating a hummus object stage. It turns out when I run "SeuratObject::Version(pbmc)", my Seurat object version is still "5.0.0". I'm thinking about downgrading library versions for both Signac and Seurat and then give another try at downgrading my Seurat object. I'll also share my session info later today. |
Here's my session info: Matrix products: default locale: time zone: UTC attached base packages: other attached packages: loaded via a namespace (and not attached): |
Dear Daniel, Sorry for late answer, I was off then a lot of work to catch up. I hope everything is now fine about your family matters. :) I finally identified the problem with SeuratV5, thanks a lot for pointing out this incompatibility. I should update HuMMuS in the week and let you know as soon as I'm done so you can test it ! :) Have a great day, |
Dear Daniel, You can install the new version of HuMMuS with Let me know if it works ! |
It works now! What was the issue with Seurat V5 if you don't mind sharing? Thanks, |
So in the previous version, Hummus objects were built on top of Seurat objects, which allowed to apply all Seurat functions to it. If I understood correctly the update, with Seurat V5 they changed the way of how their functions extract the names of the assays stored in the SeuratObject. They are now checking before running the functions if it's a SeuratObject and its version, which was annoying when creating a new type of class on top of it. To solve this but keep HuMMuS usable with both Seurat package version, I chose made Hummus_Object class more independent from SeuratObjects now. I added a It should give lighter Hummus_Objects and reduce compatibility issues as long as they don't modify too much Assays stuctures. 🙂 |
Ah What a clever workaround! Thanks for your work, Rémi. :) |
Hello,
Thank you for creating this wonderful package. I'm excited to give it a test run with my 10X-Multiome dataset. As I started to follow along with your vignette using my own dataset, I encountered an error message when transitioning into a hummus object: "hummus <- as(pbmc, 'hummus_object')". The error is as follows: Error in validObject(object = .Object) : invalid class "Seurat" object: 'assays' must be a named list.
Here's what my "pbmc" object looks like:
An object of class Seurat
324407 features across 23619 samples within 8 assays
Active assay: RNA (36601 features, 0 variable features)
6 layers present: counts.Gene Expression.RNA_280, counts.Gene Expression.RNA_302, counts.Gene Expression.RNA_72, counts.Gene Expression.RNA_203, counts.Gene Expression.RNA_271, counts.Gene Expression.RNA_294
7 other assays present: SCT, integrated, prediction.score.celltype.l1, prediction.score.celltype.l2, prediction.score.celltype.l3, ATAC, peaks
5 dimensional reductions calculated: pca, integrated_dr, ref.umap, lsi, umap
Could you give me some suggestions on what may be worth trying from here?
Thanks,
Daniel
The text was updated successfully, but these errors were encountered: