write_dgCMatrix_h5: Write a dgCMatrix to an h5 file similar to cellRanger format

Description Usage Arguments Value

View source: R/write_10x.R

Description

Write a dgCMatrix to an h5 file similar to cellRanger format

Usage

1
2
write_dgCMatrix_h5(mat, cols_are = "gene_names", h5_target,
  ref_name = "mm10-1.2.0_premrna", gene_ids = NULL)

Arguments

mat

a dgCMatrix to write.

cols_are

Whether columns are "gene_names" or "sample_names". If "gene_names", mat will be transposed to match 10X conventions.

h5_target

The target .h5 file for output.

ref_name

Reference name for storing the data

gene_ids

If available, ENSEMBL IDs for each gene

Value

an .h5 file with these mappings from dgCMatrix -> .h5:


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