0.1.3
The API contains two other submodules: libsbgn.render and libsbgn.annot
Represents the <arc>
element.
Represents the <arcgroup>
element.
Extends SBGNBase
Represents the <bbox>
element.
Extends SBGNBase
Represents the <callout>
element.
Represents the <clone>
element.
Represents the <end>
element.
Represents the <entity>
element.
Represents the <extension>
element.
Represents the <glyph>
element.
Extends SBGNBase
(Object)
Name | Description |
---|---|
params.id string?
|
|
params.class_ string?
|
|
params.compartmentRef string?
|
|
params.compartmentOrder (string | number)?
|
|
params.mapRef string?
|
|
params.tagRef string?
|
|
params.orientation string?
|
|
params.label Label?
|
|
params.bbox Bbox?
|
|
params.state State?
|
|
params.clone Clone?
|
|
params.callout Callout?
|
|
params.entity Entity?
|
|
params.glyphMembers Array<Glyph>?
|
|
params.ports Array<Port>?
|
Represents the <label>
element.
Extends SBGNBase
Represents the <map>
element.
Extends SBGNBase
Represents the <next>
element.
Represents the <notes>
element.
Its single content attribute stores xhtml elements as string.
Represents the <point>
element.
Represents the <port>
element.
Represents the <sbgn>
element.
Extends SBGNBase
Parent class for several sbgn elements. Used to provide extension and notes element. End users don't need to interact with it. It can be safely ignored.
Represents the <start>
element.
Represents the <state>
element.
This submodule contains the classes to manage the render extension's xml and some utility functions. It adds the ability to save the styles and colors used in an SBGN map, as features like background-color, border thickness or font properties are not part of the SBGN standard.
It is loosely based on the render extension of the SBML format. A subset of this specification has been adapted for SBGN-ML integration.
See Extension for more general information on extensions in the SBGN-ML format.
You can access the following classes like this: libsbgn.render.ColorDefinition
Represents the <colorDefinition>
element.
(String)
ColorDefinition
:
(Object)
xml2js formatted object
ColorDefinition
:
Represents the <listOfColorDefinitions>
element.
(String)
ListOfColorDefinitions
:
(Object)
xml2js formatted object
ListOfColorDefinitions
:
(ColorDefinition)
Represents the <listOfStyles>
element.
(String)
ListOfStyles
:
(Object)
xml2js formatted object
ListOfStyles
:
Convenience function returning a map of ids to their respective RenderGroup object, for all the styles. The style properties can then be directly accessed. Example: map[id].stroke
Object<string, RenderGroup>
:
Represents the <g>
element.
(Object)
Name | Description |
---|---|
params.id string?
|
|
params.fontSize string?
|
|
params.fontFamily string?
|
|
params.fontWeight string?
|
|
params.fontStyle string?
|
|
params.textAnchor string?
|
|
params.vtextAnchor string?
|
|
params.fill string?
|
The element's background color |
params.stroke string?
|
Border color for glyphs, line color for arcs. |
params.strokeWidth string?
|
(String)
RenderGroup
:
(Object)
xml2js formatted object
RenderGroup
:
Represents the <renderInformation>
element.
(Object)
Name | Description |
---|---|
params.id string?
|
|
params.name string?
|
|
params.programName string?
|
|
params.programVersion string?
|
|
params.backgroundColor string?
|
|
params.listOfColorDefinitions ListOfColorDefinitions?
|
|
params.listOfStyles ListOfStyles?
|
(String)
RenderInformation
:
(Object)
xml2js formatted object
RenderInformation
:
(ListOfColorDefinitions)
(ListOfStyles)
Represents the <style>
element.
(Object)
Name | Description |
---|---|
params.id string?
|
|
params.name string?
|
|
params.idList string?
|
|
params.renderGroup RenderGroup?
|
(RenderGroup)
Convenience function returning a map of ids to their respective RenderGroup object. The style properties can then be directly accessed. Example: map[id].stroke
Object<string, RenderGroup>
:
This submodule manages the annotations extension. It adds the ability to save semantic data into SBGN-ML in the form of RDF elements. Any SBGN element that can host an extension tag can also get RDF annotations. This means that almost every element can get annotated.
The annotations here are intended to be used in two ways:
The formal way of using annotations is to use specific vocabulary with specific identifiers to provide additional information that can not be conveyed otherwise through the SBGN format. See --link to combine qualifiers-- and --link to identifiers.org and MIRIAM--- This was also based on the annotation extension of SBML --link to annotation proposal for SBML--
See Extension for more general information on extensions in the SBGN-ML format.
You can access the following classes like this: libsbgn.annot.Annotation
Represents the <annotation>
element.
(Object)
Name | Description |
---|---|
params.rdfElement RdfElement?
|
(RdfElement)
Represents the <rd:RDFf>
element.
(any)
(any)
(Element)
RdfElement
:
will add triples to represent key/value properties attached to the id kvObject can have one or multiple properties
(any)
(any)
(any)
returns the id of a newly created blank node representing the HasProperty predicate if one already exists, returns its id returns array, potentially several SIO223 present
(any)
(any)
(any)
kvobject contains biology qualifier as key and miriam resource as value
(any)
(any)
(any)