Skip to contents

Write a McPeaks or ScPeaks object to an h5ad file

Usage

export_to_h5ad(object, out_file, ...)

Arguments

object

McPeaks or ScPeaks object

out_file

name of the output file

...

Arguments passed on to anndata::write_h5ad

anndata

An AnnData() object

filename

Filename of data file. Defaults to backing file.

compression

See the h5py filter pipeline. Options are "gzip", "lzf" or NULL.

compression_opts

See the h5py filter pipeline.

as_dense

Sparse in AnnData object to write as dense. Currently only supports "X" and "raw/X".

Value

None.

Examples

if (FALSE) {
atac_sc <- import_from_10x("pbmc_data", genome = "hg38")
export_to_h5ad(atac_sc, "pbmc_data/atac_sc.h5ad")
}