Description Usage Arguments Value Examples
View source: R/load_10X_matrix.R
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.
1 2 | load_10X_matrix(cellranger_outs_path, which_matrix = "raw",
cellranger_v3 = T)
|
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) |
a dgTMatrix
1 | raw_mtx <- load_10X_matrix("/mycellranger_library/outs", which_matrix="raw")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.