This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to read tsv data as dgcmatrix

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?

scrna-seq seurat

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").

0 answers

No answers yet.

Log in to answer this question.