load_mtx: Load a triple of gene names, cell names, gene x cell counts...

Description Usage Arguments Details Value

View source: R/load_mtx.R

Description

The returned matrix is a dgCMatrix as used by (e.g.) SingleCellExperiment. This function is useful when processing data from (e.g.) kallisto|bustools, for example, CITE-seq data processed with KITE, or when comparing uniquely mapped vs. multimapped counts, as one might do for repetitive elements.

Usage

1
load_mtx(path = ".", verbose = TRUE, frags = NULL, splt = FALSE, spltcol = 3)

Arguments

path

where the counts files (features, barcodes, mtx) (".")

verbose

be verbose? (TRUE)

frags

optional patterns to scan for features, barcodes, matrix

splt

split by feature type? (FALSE)

spltcol

if splitting by feature type, which column to use? (3)

Details

This function works fine on gzipped files (tested on a 180K x 2761K matrix).

Value

1
       a dgCMatrix 

trichelab/velocessor documentation built on Jan. 5, 2022, 6:27 p.m.