BPCells
BPCells copied to clipboard
write_matrix_dir does not write rownames and colnames of a matrix transformed from dgCMatrix
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 ...