% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/h5_readers.R
\name{list_h5_structure}
\alias{list_h5_structure}
\title{List structure of H5 or H5AD file}
\usage{
list_h5_structure(file_path, recursive = TRUE)
}
\arguments{
\item{file_path}{Character. Path to the H5 or H5AD file.}

\item{recursive}{Logical. List all nested groups. Default TRUE.}
}
\value{
data.frame with file structure information
}
\description{
Helper function to explore H5/H5AD file structure.
}
\examples{
\donttest{
# Round-trip: write a tiny H5AD via write_h5ad() then list its structure.
if (requireNamespace("hdf5r", quietly = TRUE) &&
    requireNamespace("SeuratObject", quietly = TRUE)) {
  pbmc_small <- SeuratObject::pbmc_small
  model <- CreateGEDIObject(
    Samples = pbmc_small@meta.data$orig.ident,
    M       = pbmc_small@assays$RNA@counts,
    K       = 3,
    verbose = 0
  )
  model$train(iterations = 5)
  tmp <- tempfile(fileext = ".h5ad")
  write_h5ad(model, tmp)
  list_h5_structure(tmp)
  unlink(tmp)
}
}

}
