Write a McPeaks or ScPeaks object to an h5ad file
Arguments
- object
McPeaks or ScPeaks object
- out_file
name of the output file
- ...
Arguments passed on to
anndata::write_h5ad
anndata
An
AnnData()
objectfilename
Filename of data file. Defaults to backing file.
compression
See the h5py filter pipeline. Options are
"gzip"
,"lzf"
orNULL
.compression_opts
See the h5py filter pipeline.
as_dense
Sparse in AnnData object to write as dense. Currently only supports
"X"
and"raw/X"
.
Examples
if (FALSE) {
atac_sc <- import_from_10x("pbmc_data", genome = "hg38")
export_to_h5ad(atac_sc, "pbmc_data/atac_sc.h5ad")
}