Skip to content

Instantly share code, notes, and snippets.

@nickhowston
nickhowston / GPR_association_parsing_sbml.py
Created October 27, 2020 09:37
this file contains methods built for processing GeneProductAssociations from SBML model
"""
this code is an example of a parsing method to extract GeneProductAssociations from SBML file
support version 2 of SBML level 3 Flux Balance Constraints(“fbc”) package
with the aid of Libsbml library
"""
from itertools import chain, combinations
import libsbml
import os