writeSCMM | R Documentation |
Read and write gene cell sparse matrix for single cell experiment.
writeSCMM(x, file)
readSCMM(file)
x |
|
file |
|
The corresponding colnames and rownames of the matrix are saved in ‘.colNames’ and ‘.rowNames’ files within the same folder of ‘.mtx’ folder.
Invisible file
for writeSCMM
.
dgCMatrix
of the gene cell count matrix for readSCMM
.
Ge Tan
x <- matrix(c(2,0,0,0,0,1,0,0), ncol=2,
dimnames=list(c("gene1", "gene2", "gene3", "gene4"),
c("cell1", "cell2")))
file <- tempfile(pattern = "countMatrix", fileext = ".mtx")
writeSCMM(x, file)
x2 <- readSCMM(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.