write_10x {ccfindR} | R Documentation

## Write 10x data files

### Description

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

### Usage

    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

    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='.')

[Package ccfindR version 1.14.0 Index]