model.metabolites.M_thf_LSQBKTc_RSQBKT.summary() #1359
-
Hello COBRApy Community, When i used this command model.metabolites.M_thf_LSQBKTc_RSQBKT.summary() I got this errorKeyError Traceback (most recent call last) File ~/RA/lib/python3.10/site-packages/cobra/core/dictlist.py:73, in DictList.get_by_id(self, id) KeyError: 'M_thf_LSQBKTc_RSQBKT' During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last) File ~/RA/lib/python3.10/site-packages/cobra/core/dictlist.py:527, in DictList.getattr(self, attr) AttributeError: DictList has no attribute or entry M_thf_LSQBKTc_RSQBKT |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That just means there is no metabolite with that name in the model. You can print a list of all metabolites with |
Beta Was this translation helpful? Give feedback.
That just means there is no metabolite with that name in the model. You can print a list of all metabolites with
print(list(models.metabolites))
.