write_tome_data: Save a both exon and intron counts to an HDF5 file (tome)

Description Usage Arguments

View source: R/write_tome.R

Description

Save a both exon and intron counts to an HDF5 file (tome)

Usage

1
2
3
write_tome_data(exon_mat = NULL, intron_mat = NULL,
  tome = "counts.tome", cols_are = "sample_name", overwrite = F,
  orientations = "both", compression_level = 4)

Arguments

exon_mat

The exon matrix to store in dgCMatrix format

intron_mat

The intron matrix to store in dgCMatrix format

tome

The HDF5 file to write to

cols_are

Specifies whether columns in the matrix are sample_ids or genes

overwrite

Whether or not to overwrite an existing tome

orientations

Which data orientations to write. Options are "both","gene_name", and "sample_name". "gene_name" and "sample_name" refer to the indexing of the matrix (i.e. columns in a dgCMatrix). Usually, you'll want to use the default, "both", to ensure compatibility with scrattch.

compression_level

The data compression level for large HDF5 matrix objects. default = 4.


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