write_10x: Write 10x data files

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Use an object and write count and annotation files in 10x format.

Usage

1
2
write_10x(object, dir, count = "matrix.mtx", genes = "genes.tsv",
  barcodes = "barcodes.tsv", quote = FALSE)

Arguments

object

Object of class scNMFSet containing count data

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.

Value

NULL

Examples

1
2
3
4
5
6
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='.')

ccfindR documentation built on Nov. 8, 2020, 5:12 p.m.