Skip to contents

Make h5 object from ArchR data

Usage

makeH5fromArchR(obj, sc1meta, filename, assay)

Arguments

obj

input ArchR object

sc1meta

data.table of cell metadata

filename

filename of output h5 file

assay

assay in ArchR object to use

Value

h5 object

Author

John F. Ouyang

Examples

if (requireNamespace("ArchR", quietly = TRUE)) {
  # Requires a real ArchRProject; none ships with this package (ArchR is
  # not on CRAN/Bioconductor), so this is only run when ArchR is actually
  # installed and a project is available.
  # sc1meta <- data.table::data.table(cellID = rownames(proj@cellColData))
  # makeH5fromArchR(proj, sc1meta, filename = tempfile(fileext = ".h5"),
  #                  assay = "PeakMatrix")
}