write_10x {ccfindR} | R Documentation |
Use an object and write count and annotation files in 10x format.
write_10x(object, dir, count = "matrix.mtx", genes = "genes.tsv", barcodes = "barcodes.tsv", quote = FALSE)
object |
Object of class |
dir |
Directory where files are to be written. |
count |
File name for count matrix. |
genes |
File name for gene annotation. |
barcodes |
File name for cell annotation. |
quote |
Suppress quotation marks in output files. |
NULL
set.seed(1) x <- matrix(rpois(n=12,lambda=3),4,3) rownames(x) <- seq_len(4) colnames(x) <- seq_len(3) s <- scNMFSet(count=x,rowData=seq_len(4),colData=seq_len(3)) write_10x(s,dir='.')