Skip to content

geff.validate.structure

_validate_axes_structure

_validate_axes_structure(
    graph: Group, meta: GeffMetadata
) -> None

Verify that any metadata regarding axes is actually present in the data

  • Property exists with name matching Axis name
  • Data is 1D
  • Missing values not allowed

Parameters:

Name Type Description Default
graph Group

The zarr group containing the geff metadata

required
meta GeffMetadata

Metadata from geff

required

_validate_edges_group

_validate_edges_group(
    edges_group: Group, metadata: GeffMetadata
) -> None

Validate the structure of an edges group in a GEFF zarr store.

_validate_nodes_group

_validate_nodes_group(
    nodes_group: Group, metadata: GeffMetadata
) -> None

Validate the structure of a nodes group in a GEFF zarr store.

_validate_props_group

_validate_props_group(
    props_group: Group,
    expected_len: int,
    parent_key: str,
    props_metadata: dict[str, PropMetadata],
) -> None

Validate every property subgroup under props_group.

validate_structure

validate_structure(store: StoreLike) -> None

Ensure that the structure of the zarr conforms to geff specification

Parameters:

Name Type Description Default
store StoreLike

Check the geff zarr, either str/Path/store

required

Raises:

Type Description
ValueError

If geff specs are violated

FileNotFoundError

If store is not a valid zarr store or path doesn't exist