sbml
SBMLParser(sbml)
Converting MetaCyc files to a Neo4j database. Documentation on the MetaCyc files and format FAQs can be found at:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sbml |
Union[str, Path]
|
The path to the MetaCyc SBML file to convert. |
required |
Attributes:
| Name | Type | Description |
|---|---|---|
sbml_file |
Filepath to the input SBML file. |
Source code in parser/sbml.py
collect_reaction_gene_product_links(reactions)
Add gene products to a reaction. This could be complicated where the child nodes could be:
. GeneProductRef
. fbc:or -> GeneProductRef
. fbc:and -> GeneProductRef
. fbc:or ->
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reactions |
Iterable[libsbml.Reaction]
|
An iterable of SBML reactions. |
required |