read_matrix: Load mtx formatted 10x or haircut matrices

Description Usage Arguments

View source: R/utils.R

Description

Load mtx formatted 10x or haircut matrices

Usage

1
2
3
4
read_matrix(path, cell_prefix = NULL, strip_10x_suffix = TRUE,
  use_gene_symbols = TRUE, split_matrix = FALSE,
  matrix_fn = "matrix.mtx.gz", features_fn = "features.tsv.gz",
  barcodes_fn = "barcodes.tsv.gz")

Arguments

path

path to directory with mtx matrix

cell_prefix

string to prefix to cell_id (default = NULL)

strip_10x_suffix

remove numeric suffix added by 10x e.g. change "TTTGTCAAGGTGTGGT-1" to "TTTGTCAAGGTGTGGT" (default = TRUE)

use_gene_symbols

If TRUE use gene symbols as row.names, if false then gene_ids will be used (default = TRUE)

split_matrix

Return a list of matrices split by feature types. Requires cellranger v.3 output.

matrix_fn

filename for matrix

features_fn

filename for genes file

barcodes_fn

filename for barcodes file


hesselberthlab/scrunchy documentation built on Nov. 11, 2019, 2:29 p.m.