read10x: Load 10x count matrices

View source: R/inner_functions.R

read10xR Documentation

Load 10x count matrices

Description

Load gene expression count data

Usage

read10x(
  data.path,
  samples = NULL,
  raw = FALSE,
  symbol = TRUE,
  sep = "!!",
  unique.names = TRUE,
  n.cores = 1,
  verbose = TRUE
)

Arguments

data.path

Path to cellranger count data.

samples

Vector of sample names (default = NULL)

raw

logical Add raw count matrices (default = FALSE)

symbol

The type of gene IDs to use, SYMBOL (TRUE) or ENSEMBLE (default = TRUE).

sep

Separator for cell names (default = "!!").

n.cores

Number of cores for the calculations (default = 1).

verbose

Print messages (default = TRUE).

Value

data frame

Examples

## Not run: 
cms <- read10x(data.path = "/path/to/count/data", 
samples = crm$metadata$samples, 
raw = FALSE, 
symbol = TRUE, 
n.cores = crm$n.cores)

## End(Not run)

CRMetrics documentation built on April 12, 2025, 2:26 a.m.