Implementation of an HDF5-backed AnnData object. This class provides an
interface to a H5AD file and minimal data is stored in memory until it is
requested by the user. It is primarily designed as an intermediate object
when reading/writing H5AD files but can be useful for accessing parts of
large files.
See AnnData-usage for details on creating and using AnnData objects.
See also
AnnData-usage for details on creating and using AnnData objects
Other AnnData classes:
AbstractAnnData,
AnnDataView,
InMemoryAnnData,
ReticulateAnnData
Super class
anndataR::AbstractAnnData -> HDF5AnnData
Active bindings
XSee AnnData-usage
layersSee AnnData-usage
obsmSee AnnData-usage
varmSee AnnData-usage
obspSee AnnData-usage
varpSee AnnData-usage
obsSee AnnData-usage
varSee AnnData-usage
obs_namesSee AnnData-usage
var_namesSee AnnData-usage
unsSee AnnData-usage
Methods
Inherited methods
anndataR::AbstractAnnData$as_HDF5AnnData()anndataR::AbstractAnnData$as_InMemoryAnnData()anndataR::AbstractAnnData$as_ReticulateAnnData()anndataR::AbstractAnnData$as_Seurat()anndataR::AbstractAnnData$as_SingleCellExperiment()anndataR::AbstractAnnData$layers_keys()anndataR::AbstractAnnData$obs_keys()anndataR::AbstractAnnData$obsm_keys()anndataR::AbstractAnnData$obsp_keys()anndataR::AbstractAnnData$print()anndataR::AbstractAnnData$shape()anndataR::AbstractAnnData$uns_keys()anndataR::AbstractAnnData$var_keys()anndataR::AbstractAnnData$varm_keys()anndataR::AbstractAnnData$varp_keys()anndataR::AbstractAnnData$write_h5ad()
Method new()
Close the HDF5 file when the object is garbage collected
HDF5AnnData constructor
Usage
HDF5AnnData$new(
  file,
  X = NULL,
  obs = NULL,
  var = NULL,
  layers = NULL,
  obsm = NULL,
  varm = NULL,
  obsp = NULL,
  varp = NULL,
  uns = NULL,
  shape = NULL,
  mode = c("a", "r", "r+", "w", "w-", "x"),
  compression = c("none", "gzip", "lzf")
)Arguments
fileThe file name (character) of the
.h5adfile. If this file already exits, other arguments must beNULL.XSee the
Xslot in AnnData-usageobsSee the
obsslot in AnnData-usagevarSee the
varslot in AnnData-usagelayersSee the
layersslot in AnnData-usageobsmSee the
obsmslot in AnnData-usagevarmSee the
varmslot in AnnData-usageobspSee the
obspslot in AnnData-usagevarpSee the
varpslot in AnnData-usageunsSee the
unsslot in AnnData-usageshapeShape tuple (e.g.
c(n_obs, n_vars)). Can be provided if bothXorobsandvarare not provided.modeThe mode to open the HDF5 file. See
as_HDF5AnnData()for detailscompressionThe compression algorithm to use. See
as_HDF5AnnData()for details