Skip to contents

Assigns an AnnData modality into the MuData. value may be either an anndataR::ReticulateAnnData (its underlying Python object is extracted) or a raw Python anndata.AnnData object. No data is copied.

Usage

# S3 method for class 'ReticulateMuData'
x[[i]] <- value

Arguments

x

A ReticulateMuData.

i

A single string: the modality name.

value

An anndataR::ReticulateAnnData or a Python anndata.AnnData object.

Value

x (invisibly, for chaining; the Python-side mutation happens in-place).

Examples

if (FALSE) { # \dontrun{
mdata[["rna"]] <- new_rna_reticulateanndata
mdata[["rna"]] <- raw_python_anndata_object
} # }