Skip to contents

Creates a data file in HDF5 format from a Seurat object.

Usage

CreateDataFile(
  srt,
  DataFile,
  name = NULL,
  assays = "RNA",
  slots = "data",
  compression_level = 6,
  overwrite = FALSE
)

Arguments

srt

The Seurat object.

DataFile

Path to the output data file. If not provided, the file will be named "Data.hdf5" in the current directory.

name

Name of the dataset. If not provided, the name will default to the Seurat object's project name.

assays

Character vector specifying the assays to include in the data file. Default is "RNA".

slots

Character vector specifying the slots to include in the data file. Default is "data".

compression_level

Compression level for the HDF5 dataset. Default is 6.

overwrite

Logical value indicating whether to overwrite existing data in the data file. Default is FALSE.