Description Usage Arguments Value Examples
View source: R/TooManyCellsR.R
This function will write a Matrix from the Matrix library to a temporary directory containing matrix.mtx, genes.tsv, barcodes.tsv, and optionally a labels.csv file.
1 | writeMatrixFiles(mat, labels = NULL)
|
mat |
The input Matrix with gene row names and cell barcode column names. |
labels |
The input labels data frame with item (cell barcodes) and label (whatever labels you want to give them, such as tissue of origin, celltype, etc.) columns. Optional. |
None
1 2 3 4 | input <- system.file("extdata", "mat.csv", package="TooManyCellsR")
df = read.csv(input, row.names = 1, header = TRUE)
mat = Matrix::Matrix(as.matrix(df), sparse = TRUE)
writeMatrixFiles(mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.