Converts HDF5 scMethrix object to an in-memory scMethrix object.

convert_HDF5_scMethrix(scm = NULL, verbose = TRUE)

Arguments

scm

scMethrix; the single cell methylation experiment

verbose

boolean; Flag for outputting function status messages. Default = TRUE

Value

An object of class scMethrix

Details

Takes an HDF%-based scMethrix object and returns with the same object with in-memory assay slots.

Examples

data('scMethrix_data') dir <- paste0(tempdir(),"/h5") scm <- convert_scMethrix(scMethrix_data)
#> Converting in-memory scMethrix to HDF5
#> Converted in 0.38s
convert_HDF5_scMethrix(scm)
#> Converting HDF5 scMethrix to in-memory
#> Converted in 0.12s
#> An object of class scMethrix #> n_CpGs: 286 #> n_samples: 4 #> assays: score, counts #> reduced dims: #> is_h5: FALSE #> Reference: hg19 #> Physical size: 46.7 Kb