SBGN output (
- class indra.assemblers.sbgn.assembler.SBGNAssembler(statements=None)¶
This class assembles an SBGN model from a set of INDRA Statements.
The Systems Biology Graphical Notation (SBGN) is a widely used graphical notation standard for systems biology models. This assembler creates SBGN models following the Process Desctiption (PD) standard, documented at: https://github.com/sbgn/process-descriptions/blob/master/UserManual/sbgn_PD-level1-user-public.pdf. For more information on SBGN, see: http://sbgn.github.io/sbgn/
stmts (Optional[list[indra.statements.Statement]]) – A list of INDRA Statements to be assembled.
The structure of the SBGN model that is assembled, represented as an XML ElementTree.
Add INDRA Statements to the assembler’s list of statements.
stmts (list[indra.statements.Statement]) – A list of
indra.statements.Statementto be added to the statement list of the assembler.
Assemble the SBGN model from the collected INDRA Statements.
This method assembles an SBGN model from the set of INDRA Statements. The assembled model is set as the assembler’s sbgn attribute (it is represented as an XML ElementTree internally). The model is returned as a serialized XML string.
sbgn_str – The XML serialized SBGN model.
- Return type
- print_model(pretty=True, encoding='utf8')¶
Return the assembled SBGN model as an XML string.