【发布时间】:2021-01-22 13:25:13
【问题描述】:
我有一个来自 Reactome 的 sbml 模型,您可以从 https://reactome.org/content/detail/R-HSA-156581 下载它并单击 sbml。对于<reaction>,其中一些具有<listOfModifiers> 的属性,我正在尝试使用libsbml 或cobrapy 来执行此操作。
我的代码读取了 sbml 文件,但是如何获取 <listOfModifiers> 的属性?
sbml_test_file = "./R-HSA-156581.sbml"
# Using the libSBML python API
# http://model.caltech.edu/software/libsbml/5.18.0/docs/formatted/python-api/libsbml-python-reading-files.html
reader = libsbml.SBMLReader()
document = reader.readSBML(sbml_test_file)
model = document.getModel()
【问题讨论】: