organoid_tracker.plugin.registry module

class organoid_tracker.plugin.registry.Registry

Bases: object

A plugin-controlled registry for various plugin-provided things, like cell types or file handlers.

For example, to add something to the marker list, plugins can define a get_markers() method in their main module. See the plugin documentation for more information.

clear_all()

Clears the registry.

get_marker_by_save_name(save_name: Optional[str]) Optional[Marker]

Gets the marker using the given save name. Returns None if no marker exists for that save name.

get_registered_file_loaders() Iterable[FileLoader]

Gets all registered file handlers.

get_registered_markers(type: Type) Iterable[Marker]

Gets all registered markers for the given type. For example, you can ask all registered cell types using get_registered_markers(Position).