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
[](https://colab.research.google.com/github/GeomScale/dingo/blob/develop/tutorials/dingo_tutorial.ipynb)
You can have a look at our [Google Colab notebook](https://colab.research.google.com/github/GeomScale/dingo/blob/develop/tutorials/dingo_tutorial.ipynb)
101
-
on how to use `dingo`.
101
+
on how to use `dingo_walk`.
102
102
103
103
104
104
## Documentation
105
105
106
106
107
-
It quite simple to use dingo in your code. In general, dingo provides two classes:
107
+
It quite simple to use dingo_walk in your code. In general, dingo_walk provides two classes:
108
108
109
109
-`metabolic_network` represents a metabolic network
110
110
-`polytope_sampler` can be used to sample from the flux space of a metabolic network or from a general convex polytope.
111
111
112
-
The following script shows how you could sample steady states of a metabolic network with dingo. To initialize a metabolic network object you have to provide the path to the `json` file as those in [BiGG](http://bigg.ucsd.edu/models) dataset or the `mat` file (using the `matlab` wrapper in folder `/ext_data` to modify a standard `mat` file of a model as those in BiGG dataset):
112
+
The following script shows how you could sample steady states of a metabolic network with dingo_walk. To initialize a metabolic network object you have to provide the path to the `json` file as those in [BiGG](http://bigg.ucsd.edu/models) dataset or the `mat` file (using the `matlab` wrapper in folder `/ext_data` to modify a standard `mat` file of a model as those in BiGG dataset):
model = MetabolicNetwork.from_json('path/to/model_file.json')
118
118
sampler = PolytopeSampler(model)
119
119
steady_states = sampler.generate_steady_states()
120
120
```
121
121
122
-
`dingo` can also load a model given in `.sbml` format using the following command,
122
+
`dingo_walk` can also load a model given in `.sbml` format using the following command,
123
123
124
124
```python
125
125
model = MetabolicNetwork.from_sbml('path/to/model_file.sbml')
@@ -147,10 +147,10 @@ The default option is to run the sequential [Multiphase Monte Carlo Sampling alg
147
147
148
148
#### Rounding the polytope
149
149
150
-
`dingo` provides three methods to round a polytope: (i) Bring the polytope to John position by apllying to it the transformation that maps the largest inscribed ellipsoid of the polytope to the unit ball, (ii) Bring the polytope to near-isotropic position by using uniform sampling with Billiard Walk, (iii) Apply to the polytope the transformation that maps the smallest enclosing ellipsoid of a uniform sample from the interior of the polytope to the unit ball.
150
+
`dingo_walk` provides three methods to round a polytope: (i) Bring the polytope to John position by apllying to it the transformation that maps the largest inscribed ellipsoid of the polytope to the unit ball, (ii) Bring the polytope to near-isotropic position by using uniform sampling with Billiard Walk, (iii) Apply to the polytope the transformation that maps the smallest enclosing ellipsoid of a uniform sample from the interior of the polytope to the unit ball.
The MCMC methods that dingo (through `volesti` library) provides are the following: (i) 'cdhr': Coordinate Directions Hit-and-Run, (ii) 'rdhr': Random Directions Hit-and-Run,
187
+
The MCMC methods that dingo_walk (through `volesti` library) provides are the following: (i) 'cdhr': Coordinate Directions Hit-and-Run, (ii) 'rdhr': Random Directions Hit-and-Run,
We use `pyoptinterface` to interface with the linear programming solvers. To switch the solver that `dingo` uses, you can use the `set_default_solver` function. The default solver is `highs` and you can switch to `gurobi` by running,
194
+
We use `pyoptinterface` to interface with the linear programming solvers. To switch the solver that `dingo_walk` uses, you can use the `set_default_solver` function. The default solver is `highs` and you can switch to `gurobi` by running,
195
195
196
196
```python
197
-
fromdingoimport set_default_solver
197
+
fromdingo_walkimport set_default_solver
198
198
set_default_solver("gurobi")
199
199
```
200
200
@@ -205,7 +205,7 @@ You can also switch to other solvers that `pyoptinterface` supports, but we reco
205
205
To apply FVA and FBA methods you have to use the class `metabolic_network`,
206
206
207
207
```python
208
-
fromdingoimport MetabolicNetwork
208
+
fromdingo_walkimport MetabolicNetwork
209
209
210
210
model = MetabolicNetwork.from_json('path/to/model_file.json')
211
211
fva_output = model.fva()
@@ -233,7 +233,7 @@ while the output vectors are the same with the previous example.
233
233
234
234
### Set the restriction in the flux space
235
235
236
-
FVA and FBA, restrict the flux space to the set of flux vectors that have an objective value equal to the optimal value of the function. dingo allows for a more relaxed option where you could ask for flux vectors that have an objective value equal to at least a percentage of the optimal value,
236
+
FVA and FBA, restrict the flux space to the set of flux vectors that have an objective value equal to the optimal value of the function. dingo_walk allows for a more relaxed option where you could ask for flux vectors that have an objective value equal to at least a percentage of the optimal value,
0 commit comments