Read10X_aggr: Load in data from 10X Cellranger aggr

Description Usage Arguments Value

View source: R/utilities.R

Description

Enables easy loading of sparse data matrices provided by 10X Cellranger aggr.

Usage

1
2
3
4
5
6
7
Read10X_aggr(
  data.dir,
  sample.names,
  split = FALSE,
  gene.column = 2,
  unique.features = TRUE
)

Arguments

data.dir

Directory containing the matrix.mtx, genes.tsv (or features.tsv), and barcodes.tsv files provided by by 10X Cellranger aggr

sample.names

A vector of characters indicating the sample names. The length of sample.names must be equal to the number of libraries input to aggr pipeline

split

Whether or not to split the matrix by each sample

gene.column

Specify which column of genes.tsv or features.tsv to use for gene names; default is 2

unique.features

Make feature names unique (default TRUE)

Value

If split=FALSE, will return a sparse matrix with cell barcodes attched to each sample name. If split=TRUE, will return a list of splited matrices


lyc-1995/MySeuratWrappers documentation built on June 30, 2020, 11:48 a.m.