Entering edit mode
13 months ago
Alex
▴
20
Update: Solved. The barcodes provided in the metadata and count matrix are not the same.
One is “xyz-1”, another is “xyz.1”. Just need to correct the barcodes.
I will post some photos later as references for people who might encounter similar issues in the future . Thanks
—————
I have a tsv count matrix and a tsv metadata. I read both files by read_tsv("filename"), so they become tibble.
Next, I tried to CreateSeuratObject(counts = counts, meta.data=meta). It failed.
I wonder what is the standard way to convert the tsv matrix into dgcMatrix, and create a seurat object from them?
Post the error message or more details on why it has failed.
it failed
is not an adequate description, please add details. Likely the format itself (dense or sparse matrix) is not the issue here since Seurat can accept dense (=normal) matrix.Anyway,
as(your_matrix, "CsparseMatrix")
.