Skip to contents

Returns the Python mudata module imported with reticulate::import() and convert = FALSE. The result is cached so the import only happens once per R session.

The module is useful for creating MuData objects inside tests or interactive sessions before wrapping them with ReticulateMuData:

mu    <- py_mudata()
mdata <- mu$MuData(dict_of_adatas)

Usage

py_mudata()

Value

The Python mudata module (convert = FALSE).

Examples

if (FALSE) { # \dontrun{
mu <- py_mudata()
mu$`__version__`
} # }