load10x {iCellR} | R Documentation |
Load 10X data as data.frame
Description
This function takes 10X data files barcodes.tsv, genes.tsv and matrix.mtx and converts them to proper matrix file for iCellR.
Usage
load10x(dir.10x = NULL, gene.name = 2)
Arguments
dir.10x |
A directory that includes the 10X barcodes.tsv, genes.tsv and matrix.mtx files. |
gene.name |
Gene names or ids column number, default = 2. |
Value
The data frame object
Examples
my.data <- load10x(system.file("extdata", "filtered_gene_bc_matrices", package = "iCellR"))
# See first few rows and columns
head(my.data)[1:5]
[Package iCellR version 1.6.7 Index]