-
Dear Christian, thank you for answering my previous questions! Referring to query #88 in the QnA I have some remaining issues when setting the media and therefore have some remaining questions.
import pandas as pd ValueError Traceback (most recent call last) ~/opt/anaconda3/lib/python3.9/site-packages/micom/community.py in medium(self, fluxes) ValueError: No ID from the medium could be found in the exchange reactions. This means you probably have mismatched IDs... I’m confused to get this error since I have set the media IDs according to the ones I have obtained previously from the FBA output, where I did not set any media.
import pandas as pd [18:19:11] ERROR Could not solve cooperative tradeoff for sample_1. This can grow.py:63
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For setting ...
med.index = med.reaction
com.medium = med.flux
... |
Beta Was this translation helpful? Give feedback.
For setting
com.medium
the passed medium must be dict-like object like in cobrapy. Media in DataFrame object are only accepted in thegrow
workflow. So in your example it would be: