BPCells icon indicating copy to clipboard operation
BPCells copied to clipboard

write_matrix_dir does not write rownames and colnames of a matrix transformed from dgCMatrix

Open realzehuali opened this issue 1 year ago • 12 comments

g = readRDS("raw.RDS") # previous Assay3 in dgCMatrix g[["RNA"]] = as(g[["RNA"]], Class = "Assay5") g[["RNA"]]$counts = as(g[["RNA"]]$counts, "IterableMatrix", strict = F) write_matrix_dir(mat = g[["RNA"]]$counts, dir = "BPCell/counts", overwrite = T) g = CreateSeuratObject(open_matrix_dir("BPCell/counts")) g[["RNA"]]

the output of g[["RNA"]] is a matrix with rownames of Feature1 Feature2 Feature3 ... and colnames of Cells_1 Cell_2 ...

realzehuali avatar May 16 '23 17:05 realzehuali