SBGN-ML
momapy.sbgn.io.sbgnml
Classes for reading and writing SBGN-ML files
Classes:
Name | Description |
---|---|
SBGNML0_2Reader |
Class for SBGN-ML 0.2 reader objects |
SBGNML0_2Writer |
Class for SBGN-ML 0.2 writer objects |
SBGNML0_3Reader |
Class for SBGN-ML 0.3 reader objects |
SBGNML0_3Writer |
Class for SBGN-ML 0.3 writer objects |
SBGNML0_2Reader
Bases: _SBGNMLReader
Class for SBGN-ML 0.2 reader objects
Methods:
Name | Description |
---|---|
check_file |
Return |
read |
Read an SBGN-ML file and return a reader result object |
check_file
classmethod
Return true
if the given file is an SBGN-ML 0.2 document, false
otherwise
Source code in src/momapy/sbgn/io/sbgnml.py
read
classmethod
read(file_path: str | PathLike, return_type: Literal['map', 'model', 'layout'] = 'map', with_model: bool = True, with_layout: bool = True, with_annotations: bool = True, with_notes: bool = True, with_styles: bool = True, xsep: float = 0, ysep: float = 0) -> ReaderResult
Read an SBGN-ML file and return a reader result object
Source code in src/momapy/sbgn/io/sbgnml.py
SBGNML0_2Writer
Bases: _SBGNMLWriter
Class for SBGN-ML 0.2 writer objects
Methods:
Name | Description |
---|---|
write |
Write an object to a file and return a writer result using the writer |
write
classmethod
write(obj: SBGNMap, file_path, annotations=None, notes=None, ids=None, with_render_information=True, with_annotations=True, with_notes=True)
Write an object to a file and return a writer result using the writer
Source code in src/momapy/sbgn/io/sbgnml.py
SBGNML0_3Reader
Bases: _SBGNMLReader
Class for SBGN-ML 0.3 reader objects
Methods:
Name | Description |
---|---|
check_file |
Return |
read |
Read an SBGN-ML file and return a reader result object |
check_file
classmethod
Return true
if the given file is an SBGN-ML 0.3 document, false
otherwise
Source code in src/momapy/sbgn/io/sbgnml.py
read
classmethod
read(file_path: str | PathLike, return_type: Literal['map', 'model', 'layout'] = 'map', with_model: bool = True, with_layout: bool = True, with_annotations: bool = True, with_notes: bool = True, with_styles: bool = True, xsep: float = 0, ysep: float = 0) -> ReaderResult
Read an SBGN-ML file and return a reader result object
Source code in src/momapy/sbgn/io/sbgnml.py
SBGNML0_3Writer
Bases: _SBGNMLWriter
Class for SBGN-ML 0.3 writer objects
Methods:
Name | Description |
---|---|
write |
Write an object to a file and return a writer result using the writer |
write
classmethod
write(obj: SBGNMap, file_path, annotations=None, notes=None, ids=None, with_render_information=True, with_annotations=True, with_notes=True)
Write an object to a file and return a writer result using the writer