Reading and writing

Reading and writing#

Read profiles, plates and JUMP data into AnnData or SpatialData, and check them against the schema.

io.read_profiles(paths[, metadata_prefixes, ...])

Read profiles into an AnnData of observations by features.

io.read_plate(path[, plate, batch, layout, ...])

Read one plate of images, segmentations and measurements into a SpatialData object.

io.read_jump(paths[, annotate])

Read JUMP plate profiles, optionally joining the annotation.

io.read(path[, backed, migrate_schema])

Read a mantispy h5ad or zarr store, checking its schema version.

io.write(adata, path)

Validate and write adata as h5ad (default) or zarr (.zarr suffix).

io.stamp(adata[, resolution, copy])

Mark an AnnData built elsewhere as a mantispy object.

io.validate(adata, *[, raise_on_error])

Check adata against the mantispy schema.

class mantispy._core.schema.ValidationReport(errors=<factory>, warnings=<factory>)[source]#

Result of validate().

Truthy when there are no errors.

property ok: bool#

Whether the object satisfies the schema.