Closed aCompanionUnobtrusive closed 1 year ago
Hi, happy to help where I can. It seems like a large part of this is a Seurat question, particularly as the error message you've given comes from Seurat, not BPCells. I won't particularly be able to help you with that error message.
My guess is the error is coming from when you're running seur1[["RNA"]]$counts
, prior to actually running the BPCells function write_matrix_dir
, as BPCells does not have any knowledge of LayerData.Assay5
etc. -- those are Seurat functions + types and will never appear in a BPCells error message.
If you have objects of type "IterableMatrix", those come from BPCells and I can provide direct feedback on what operations are/aren't supported. When printing out one of these objects, you should see information about the matrix printed, starting with a line that looks like 3 x 4 IterableMatrix object with class ....
Now for a long explanation I wrote that in retrospect is probably overkill for what you need to know: 🙃
Thank you for your fast and detailed reply!
Your long explanation was super useful, and thanks for the tip to save just the raw counts.
What worked for me was to run JoinLayers on my seurat object first, and then it wrote the counts without issue :)
Hello, thanks for making such a useful package!
I am having an issue with writing a merged v5 Seurat object to disk...
Using the following code:
gives me the error:
And then only the first layer is written to disk, but I want all of the layers written... Do you know how I should do this?