Skip to contents

Reproduces Python's repr: the shape followed by the keys of each non-empty Slot. X is listed in layers as None (.X).

Usage

# S3 method for class 'AnnData'
format(x, ...)

# S3 method for class 'AnnData'
print(x, ...)

Arguments

x

An AnnData() object.

...

Ignored.

Value

format() returns a single string, print() returns x invisibly.

Examples

adata <- AnnData(matrix(0, 2, 3))
print(adata)
#> AnnData object with n_obs × n_vars = 2 × 3
#>     layers: None (.X)