sbgn¶
Python bindings of the SBGN-ML schema.
Generated from libsbgnpy/schema/SBGN.xsd with
xsdata, see libsbgnpy/schema/README.md;
do not edit by hand. The classes mirror the schema, so the
SBGN specifications
are the reference for what an element means, and the docstrings are the
documentation of the schema.
An SBGN document is an Sbgn holding Map objects, a map holds Glyph and
Arc objects, and every element inherits from Sbgnbase, which carries the
notes and the extension. See the user guide for how they are used.
Sbgnbase
dataclass
¶
It supports attaching notes and extensions to components, with metadata and annotations encoded in the extension element. .
Bbox
dataclass
¶
Bases: Sbgnbase
This rectangle is defined by:
Point
dataclass
¶
Bases: Sbgnbase
Namely:
Port
dataclass
¶
Bases: Sbgnbase
It consists of:
:ivar x:
:ivar y:
:ivar id:
Label
dataclass
¶
Bases: Sbgnbase
The text attribute is mandatory. Its position can be specified by a bbox (optional). Tools are free to display the text in any style (font, font-size, etc.) .
:ivar bbox:
:ivar text:
Glyph
dataclass
¶
Glyph(
*,
notes=None,
extension=None,
label=None,
state=None,
clone=None,
callout=None,
entity=None,
bbox,
glyph=list(),
port=list(),
class_value,
orientation=HORIZONTAL,
id,
compartment_ref=None,
compartment_order=None,
map_ref=None,
tag_ref=None,
)
Bases: Sbgnbase
In the second case, it is a child of another glyph element. .
:ivar label:
:ivar state:
State
dataclass
¶
:ivar value:
Arc
dataclass
¶
Arc(
*,
notes=None,
extension=None,
glyph=list(),
port=list(),
start,
next=list(),
end,
class_value,
id,
source,
target,
)
Bases: Sbgnbase
It contains:
:ivar glyph:
Arcgroup
dataclass
¶
Bases: Sbgnbase
For example
:ivar glyph:
Map
dataclass
¶
Map(
*,
notes=None,
extension=None,
bbox=None,
glyph=list(),
arc=list(),
arcgroup=list(),
version=None,
language=None,
id,
)
Bases: Sbgnbase
It contains a list of glyph elements and a list of arc elements. These lists can be of any size (possibly empty). .
:ivar bbox: