Closed JunlinJLiu closed 4 months ago
Hi,
Not member of dev team but hopefully can be helpful. Have you tried reading in file using Seurat V5 beta and the BPCells package (https://satijalab.org/seurat/articles/seurat5_bpcells_interaction_vignette)? Do you still have issues using that pipeline?
Best, Sam
Have you tried reading in file using Seurat V5 beta and the BPCells package (https://satijalab.org/seurat/articles/seurat5_bpcells_interaction_vignette)? Do you still have issues using that pipeline?
Thanks for the reply Sam! I think the problem with my data is that everything is nested under data
so instead of finding counts
, gene
, and sample
we have to look at data/counts
etc. And I couldn't find anything in these methods that let me adjust that path. And that's basically why I'm manually loading the matrix and converting them into seurat.
Did you find a solution? I have the same issue.
I still do not know what caused the issue or what it meant, but creating it as an Assay Object then turning that into a Seurat object seems to have worked.
dat = CreateAssayObject(gmat.use) dat = CreateSeuratObject(dat)
I encounter a similar error, while also reading in an h5 data in CSR/CSC format... The CreateAssayObject
workaround by clee700 worked...
Error in slot(object = object, name = "cells")[[layer]] <- cells :
more elements supplied than there are to replace
It turns out this is due to row/colnames of counts must be character but not array, thus
genes <- as.character(genes)
cells <- as.character(cells)
before assigning the row/colnames solved the problem.
Hello,
Thanks everyone for your contributions. I'm closing this now as it appears to be resolved, but please open a new issue if you are continuing to have trouble. Thanks!
I have been facing this. The suggested solutions didn't resolve this issue for me.
I don't know if this has been asked before but I could find anything yet...
I tried to read an hdf5 sc-seq file into Seurat but it was too large so I wanted to load the first 10000 data. The data is in the following format: h5ls("expression_matrix.hdf5")
According to the structure I used the following code to load the first 10000 data:
The last step gave me this error:
I had no clue what caused this error. Can anybody give me a hint?