omero.plugins.tag module¶
Tag plugin for command-line tag manipulation
- class plugins.tag.Tag(tag_id=None, name=None, description=None, owner=None, children=None)[source]¶
Bases:
object
- class plugins.tag.TagControl(*args: Any, **kwargs: Any)[source]¶
Bases:
BaseControl
- create_tag(name, description, text='tag')[source]¶
Creates a new tag object. Returns the new tag object.
If name parameter is None, the user will be prompted to input it.
The “text” parameter should be the text description to use upon user input. For example, if we were creating a tag, this would be “tag” (the default). If we were creating a tagset, this could be “tag set”.
- determine_console_size()[source]¶
Will attempt to determine console size based upon the current platform.
Returns tuple of width and length.
- generate_empties(empties, args)[source]¶
Given a list of empty tagsets, return a list of lines representing the empty tagset output.
- generate_orphans(orphans, args)[source]¶
Given a list of orphaned tags, return a list of lines representing the orphan output.
- generate_tagset(tags, mapping, args)[source]¶
Given a dict of tags and mappings for parent/child relationships return a list of lines representing the tagset output.