read_loom_dgCMatrix: Read a Loom matrix as a dgCMatrix

Description Usage Arguments Value

View source: R/read_loom.R

Description

Read a Loom matrix as a dgCMatrix

Usage

1
2
read_loom_dgCMatrix(loom_file, chunk_size = 5000, row_names = "Gene",
  col_names = "CellID")

Arguments

loom_file

The loom file to read

chunk_size

The number of rows to read as a chunk. For ~30k genes, a chunk of 5000 (the default) is ~1GB in memory.

row_names

The name of the Loom row_attr to use for rownames of the matrix. Default is "Gene".

col_names

The name of the Loom col_attr to use for colnames of the matrix. Default is "CellID".

Value

A dgCMatrix object with genes as columns and samples as rows.


AllenInstitute/scrattch.io documentation built on Nov. 17, 2021, 10:06 a.m.