read_count_output | R Documentation |
This function takes in a directory and name and reads the mtx file, genes,
and barcodes from the output of bustools
to return a sparse matrix with
column names and row names.
read_count_output(dir, name, tcc = FALSE)
dir |
Directory with the bustools count outputs. |
name |
The files in the output directory should be "name".mtx, "name".genes.txt, and "name".barcodes.txt. |
tcc |
Logical, whether the matrix of interest is a TCC matrix. Defaults
to |
A dgCMatrix with barcodes as column names and genes as row names.
# Internal toy data used for unit testing
toy_path <- system.file("testdata", package = "BUSpaRse")
m <- read_count_output(toy_path, name = "genes", tcc = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.