siibra.vocabularies

Abbreviations and aliases.

Attributes

RECEPTOR_SYMBOLS

REGION_ALIASES

RT_DIR

Classes

InstanceTable

Lookup table for instances of a given class by name/id.

Functions

runtime_path(fname)

Package Contents

class siibra.vocabularies.InstanceTable(matchfunc=lambda a, b: ..., elements=None)
Inheritance diagram of siibra.vocabularies.InstanceTable

Lookup table for instances of a given class by name/id. Provide attribute-access and iteration to a set of named elements, given by a dictionary with keys of ‘str’ type.

add(key: str, value: T) None

Add a key/value pair to the registry.

Args:

key (string): Unique name or key of the object value (object): The registered object

find(spec) List[T]

Return a list of items matching the given specification, which could be either the name or a specification that works with the matchfunc of the Glossary.

get(spec) T

Give access to objects in the registry by sequential index, exact key, or keyword matching. If the keywords match multiple objects, the first in sorted order is returned. If the specification does not match, a RuntimeError is raised.

Args:

spec [int or str]: Index or string specification of an object

Returns:

Matched object

provides(spec) bool

Returns True if an element that matches the given specification can be found (using find(), thus going beyond the matching of names only as __contains__ does)

values()
property dataframe
siibra.vocabularies.runtime_path(fname: str)
siibra.vocabularies.RECEPTOR_SYMBOLS
siibra.vocabularies.REGION_ALIASES
siibra.vocabularies.RT_DIR