load_10X_matrix: Load an expression matrix from a directory of...

Description Usage Arguments Value Examples

View source: R/load_10X_matrix.R

Description

load_10X_matrix() loads an expression matrix as a sparseMatrix from a directory of 10X Genomics scRNAseq data created using the cellranger pipeline. Either the raw or the filtered matrix can be loaded.

Usage

1
2
load_10X_matrix(cellranger_outs_path, which_matrix = "raw",
  cellranger_v3 = T)

Arguments

cellranger_outs_path

the path to the "outs" directory in the cellranger library folder e.g. "/mycellranger_library/outs"

which_matrix

must be "raw" or "filtered" to specify the raw or filtered matrix to load respectively.

cellranger_v3

logical; if cellranger version 3 and above was used to produced matrices.

cellranger_filter

whether to use the filtered matrices from the cellranger pipeline as the expression matrix (i.e. as cells)

Value

a dgTMatrix

Examples

1
raw_mtx <- load_10X_matrix("/mycellranger_library/outs", which_matrix="raw")

jacobheng/cellwrangler documentation built on Aug. 12, 2019, 6:49 a.m.