You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but what happens if the user has the matrices that define a polytope? (or they want to sample a polytope not related to a metabolic model)
I propose the following change in the interface. Rename class PolytopeSampler to Polytope that can be initialized either with a metabolic model or with a set of matrices. Then there is a single function sample (or sampling or sample_points) that has parameters the ess, psrf, the distribution, the walk algorithm, rounding or not etc. In the case of metabolic models, the Polytope class will have a generate_stead_states function that for all the other cases (the polytope does not correspond to a metabolic model) will return a non applicable warning.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently dingo has many functions for sampling and with different names that might confuse the user. For example, there are:
All of the are performing sampling from a polytope (but with some differences).
With the current interface if the user want to sample from a metabolic model then:
but what happens if the user has the matrices that define a polytope? (or they want to sample a polytope not related to a metabolic model)
I propose the following change in the interface. Rename class
PolytopeSampler
toPolytope
that can be initialized either with a metabolic model or with a set of matrices. Then there is a single functionsample
(orsampling
orsample_points
) that has parameters the ess, psrf, the distribution, the walk algorithm, rounding or not etc. In the case of metabolic models, thePolytope
class will have agenerate_stead_states
function that for all the other cases (the polytope does not correspond to a metabolic model) will return a non applicable warning.Beta Was this translation helpful? Give feedback.
All reactions