seed2lp 2.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. seed2lp/__init__.py +12 -0
  2. seed2lp/__main__.py +837 -0
  3. seed2lp/_version.py +2 -0
  4. seed2lp/argument.py +717 -0
  5. seed2lp/asp/atom_for_transfers.lp +7 -0
  6. seed2lp/asp/community_heuristic.lp +3 -0
  7. seed2lp/asp/community_search.lp +14 -0
  8. seed2lp/asp/constraints_targets.lp +15 -0
  9. seed2lp/asp/definition_atoms.lp +87 -0
  10. seed2lp/asp/enum-cc.lp +50 -0
  11. seed2lp/asp/flux.lp +70 -0
  12. seed2lp/asp/limit_transfers.lp +9 -0
  13. seed2lp/asp/maximize_flux.lp +2 -0
  14. seed2lp/asp/maximize_produced_target.lp +7 -0
  15. seed2lp/asp/minimize.lp +8 -0
  16. seed2lp/asp/seed-solving.lp +116 -0
  17. seed2lp/asp/seed_external.lp +1 -0
  18. seed2lp/asp/show_seeds.lp +2 -0
  19. seed2lp/asp/show_tranfers.lp +1 -0
  20. seed2lp/asp/test.lp +61 -0
  21. seed2lp/clingo_lpx.py +236 -0
  22. seed2lp/color.py +34 -0
  23. seed2lp/config.yaml +56 -0
  24. seed2lp/description.py +424 -0
  25. seed2lp/file.py +151 -0
  26. seed2lp/flux.py +365 -0
  27. seed2lp/linear.py +431 -0
  28. seed2lp/log_conf.yaml +25 -0
  29. seed2lp/logger.py +112 -0
  30. seed2lp/metabolite.py +46 -0
  31. seed2lp/network.py +1921 -0
  32. seed2lp/reaction.py +207 -0
  33. seed2lp/reasoning.py +459 -0
  34. seed2lp/reasoningcom.py +753 -0
  35. seed2lp/reasoninghybrid.py +791 -0
  36. seed2lp/resmod.py +74 -0
  37. seed2lp/sbml.py +307 -0
  38. seed2lp/scope.py +124 -0
  39. seed2lp/solver.py +333 -0
  40. seed2lp/temp_flux_com.py +74 -0
  41. seed2lp/utils.py +237 -0
  42. seed2lp-2.0.0.dist-info/METADATA +404 -0
  43. seed2lp-2.0.0.dist-info/RECORD +53 -0
  44. seed2lp-2.0.0.dist-info/WHEEL +5 -0
  45. seed2lp-2.0.0.dist-info/entry_points.txt +2 -0
  46. seed2lp-2.0.0.dist-info/licenses/LICENCE.txt +145 -0
  47. seed2lp-2.0.0.dist-info/top_level.txt +2 -0
  48. tests/__init__.py +0 -0
  49. tests/fba.py +147 -0
  50. tests/full_network.py +166 -0
  51. tests/normalization.py +188 -0
  52. tests/target.py +286 -0
  53. tests/utils.py +181 -0
@@ -0,0 +1,404 @@
1
+ Metadata-Version: 2.4
2
+ Name: seed2lp
3
+ Version: 2.0.0
4
+ Summary: Seed searching from network as SBML using Logic programming
5
+ Home-page: http://github.com/bioasp/seed2lp
6
+ Author: Chabname Ghassemi Nedjad
7
+ Author-email: chabname.ghassemi-nedjad@inria.fr
8
+ License: GPL
9
+ Keywords: Answer Set Programming,wrapper,clingo
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: ASP
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENCE.txt
16
+ Requires-Dist: clyngor>=0.3.18
17
+ Requires-Dist: pytest>=4.4.0
18
+ Requires-Dist: biseau>=0.0.16
19
+ Requires-Dist: cobra
20
+ Requires-Dist: clyngor-with-clingo
21
+ Requires-Dist: clingo-lpx
22
+ Requires-Dist: pyyaml
23
+ Requires-Dist: menetools
24
+ Requires-Dist: padmet
25
+ Requires-Dist: tqdm
26
+ Provides-Extra: tests
27
+ Requires-Dist: pytest; extra == "tests"
28
+ Dynamic: author
29
+ Dynamic: author-email
30
+ Dynamic: classifier
31
+ Dynamic: home-page
32
+ Dynamic: license
33
+ Dynamic: license-file
34
+ Dynamic: summary
35
+
36
+ # Seed2LP
37
+
38
+ Seed2LP is a Python tool that searches seeds in metabolic networks. It uses answer set programming (ASP) and provides three approaches for seed detection:
39
+ - [**Full network**](#full-network) mode, that activates all compounds of the metabolic network.
40
+ - [**Target**](#target) mode, that activates metabolites of interest.
41
+ - [**FBA**](#fba) mode, that randomly searches seeds ensuring a positive flux into the objective reaction
42
+
43
+ The notebook directory of this repo contains scripts that reproduce the results presented in the associated paper.
44
+
45
+ </br>
46
+ <hr style="border: 4px outset" size="8" >
47
+
48
+ ## Install
49
+
50
+ **From github**
51
+ ```
52
+ pip install git+https://github.com/bioasp/seed2lp
53
+ ```
54
+
55
+ **From repository source after git clone**
56
+
57
+ ```
58
+ pip install .
59
+ ```
60
+ or
61
+ ```
62
+ python setup.py install
63
+ ```
64
+
65
+
66
+ </br>
67
+
68
+ ## Requirements
69
+
70
+ Requires Python >= 3.10.
71
+
72
+ For below requirements, installing Seed2LP will install all needed packages if not already installed.
73
+
74
+
75
+
76
+ | name | version |
77
+ |:----------:|:-------------:|
78
+ | [clyngor](https://github.com/Aluriak/clyngor) | 0.3.18 |
79
+ | [clingo-lpx](https://github.com/potassco/clingo-lpx) | 1.3.0 |
80
+ | [cobrapy](https://cobrapy.readthedocs.io/en/latest/index.html) | 0.26.0 |
81
+ | [pyyaml](https://pyyaml.org/wiki/PyYAMLDocumentation) | 6.0 |
82
+ | [menetools](https://github.com/cfrioux/MeneTools) | 3.4.0 |
83
+ | [padmet](https://github.com/AuReMe/padmet) | 5.0.1 |
84
+
85
+ <hr style="border: 4px outset" size="8" >
86
+
87
+ ## Command examples
88
+ The following examples uses a toy described on Seed2LP paper.
89
+
90
+ > Get all solutions in all Target modes (Reasoning, Filter, Guess&Check, Guess&Check with Diversity, Hybrid lpx), in all optimisations (subset minimal and minimize)
91
+ >```
92
+ >seed2lp target networks/toys/SBML/toy_paper.SBML results/toys/
93
+ >```
94
+
95
+ > Get one solution in Full Network in reasoning and check flux
96
+ >```
97
+ >seed2lp full networks/toys/SBML/toy_paper.SBML results/toys/ -nbs 1 -so reasoning -cf
98
+ >```
99
+
100
+ > Get one solution in FBA only in subset minimal
101
+ >```
102
+ >seed2lp fba networks/toys/SBML/toy_paper.SBML results/toys/ -nbs 1 -m subsetmin
103
+ >```
104
+
105
+ <hr style="border: 4px outset" size="8" >
106
+
107
+ ## 📜[Network analyse](documentations/network_analyse.mkd)
108
+ The first step of the tool is to read the network, analyse it to be able to perform a logic analyse of the Network, each reaction must be defined as follows:
109
+
110
+ $$ Reaction: Set\{reactants\} ⟶ Set\{products\} \quad with \quad bounds = [0,\infty]$$
111
+
112
+
113
+ For each reaction, multiple factors are verified and correction is done if needed such as swapping set of reactants and set of products if the boundaries of a reaction are negative or deleting reactions with null boundaries. A warning is outputted when changes are done.
114
+
115
+ 📃 **Output example:**
116
+
117
+ ```
118
+ WARNING :
119
+ - R_R2: Deleted.
120
+ Boundaries was: [0.0 ; 0.0]
121
+ - R_R7: Reactants and products switched.
122
+ Boundaries was: [-1000.0 ; 0.0]
123
+
124
+ ```
125
+
126
+ ## Search mode features
127
+ It is possible to run Seed2LP for all the 3 modes ([**Full network**](#full-network), [**Target**](#target) and [**FBA**](#fba) by changing the command, and for each one to use specifics arguments.
128
+
129
+ There are also 2 additional features:
130
+ - [**Network**](#network): allows drawing the network from the ASP definition and checking the network ASP decription by comparing with the Cobrapy description, or write into an SBML file the corrected network (exchanging products and reactants or delteing reaction with all boundaries to 0)
131
+ - [**Flux**](#flux): Allows checking the flux with Cobrapy from Seed2LP result files, or any file having the same json structure than Seed2LP.
132
+
133
+ <br/>
134
+ <hr style="border: 1px dotted" >
135
+
136
+ ### 📜 [<ins>Full Network</ins>](documentations/full_network.mkd)
137
+ This mode searches seeds with this goal: "activate"/"produce" all reaction/metabolites of the network.
138
+ > 💻 **Command:**
139
+ >
140
+ > ```
141
+ > seed2lp full [network_file] [output_directory] [arguments]
142
+ > ```
143
+
144
+ There are also two submodes:
145
+ - 📜 [Reasoning](documentations/full_network.mkd#reasoning): Use ASP solving with clingo
146
+ - **Classic:** Use reasoning (logical, Boolean abstraction of metabolic activity) search only, without calculating flux into objective reaction
147
+ - **Filter:** Use reasoning search only, but for all results the flux is checked with [cobrapy](https://cobrapy.readthedocs.io/en/latest/index.html), and only the solutions having flux are returned.
148
+ - **Guess-check:** Use reasoning search and directly interact with the solver during solving by adding new constraints. Flux is checked with [cobrapy](https://cobrapy.readthedocs.io/en/latest/index.html) for every solution proposed by the solver and new constraints are derived out of it to guide the remaining solving process. All outputted solutions have flux natively.
149
+ - 📜 [Hybrid](documentations/full_network.mkd#hybrid): Ensure the resulting model statisfies both logical and flux constraints using a hybrid ASP-LP solver.
150
+
151
+ <br/>
152
+ <hr style="border: 1px dotted" >
153
+
154
+ ### 📜 [<ins>Target</ins>](documentations/target.mkd)
155
+ This mode searches seeds with this goal: producing a set of metabolites, or if a reaction is given, ensuring the production of the reactants needed for its activation.
156
+ > 💻 **Command:**
157
+ >
158
+ > ```
159
+ > seed2lp target [network_file] [output_directory] [arguments]
160
+ > ```
161
+
162
+ There are also two submodes:
163
+ - 📜 [Reasoning](documentations/target.mkd): Use ASP solving with clingo
164
+ - **Classic:** Use reasoning (logical, Boolean abstraction of metabolic activity) search only, without calculating flux into objective reaction
165
+ - **Filter:** Use reasoning search only, but for all results the flux is checked with [cobrapy](https://cobrapy.readthedocs.io/en/latest/index.html), and only the solutions having flux are returned.
166
+ - **Guess-check:** Use reasoning search and directly interact with the solver during solving by adding new constraints. Flux is checked with [cobrapy](https://cobrapy.readthedocs.io/en/latest/index.html) for every solution proposed by the solver and new constraints are derived out of it to guide the remaining solving process. All outputted solutions have flux natively.
167
+ - 📜 [Hybrid](documentations/target.mkd): Ensure the resulting model statisfies both logical and flux constraints using a hybrid ASP-LP solver.
168
+
169
+ <br/>
170
+ <hr style="border: 1px dotted" >
171
+
172
+ ### 📜 [<ins>FBA</ins>](documentations/fba.mkd)
173
+ This mode randomly searches seeds by ensuring flux on objective reaction.
174
+
175
+ > 💻 **Command:**
176
+ >
177
+ > ```
178
+ > seed2lp fba [network_file] [output_directory] [arguments]
179
+ > ```
180
+
181
+ </br>
182
+ <hr style="border: 4px outset" size="8" >
183
+
184
+ ## set-mode features
185
+ It is possible to choose what kind of set of seeds to search.
186
+
187
+ ### <ins>Subset minimal</ins>
188
+ The subset minimal (submin) mode finds a set of seeds which satisfies all the constraints, then from this set, it tries to eliminate seeds until it finds the minimal set that will satisfy the constraints.
189
+
190
+ This method of search **does not guarantee minimality** in terms of size of the set. But it can be a **faster way** to have set of seeds the most minimal possible from a set already validated.
191
+
192
+ > 📃 **Example:**
193
+ >
194
+ > Considering all the followings sets of seeds below, that statisfy constraints for the objective, which of them are subset minimal and will be selected?
195
+ >
196
+ > | Sets of seeds | is choosen ? | reasons |
197
+ > |:--------------:|:---------------:|:-------------:|
198
+ > | {A,B,C,D,E} | no | {A,B,C} is a set of seeds included into this set|
199
+ > | {A,B,C} | yes | There is no other set smaller included in this set|
200
+ > | {A,D,E,F} | no |{A,D,F} is a set of seeds included into this set |
201
+ > | {A,D,F} | yes | There is no other set smaller included in this set |
202
+ > | {A,C,E,F} | yes | There is no other set smaller included in this set|
203
+
204
+ <br/>
205
+ <hr style="border: 1px dotted" >
206
+
207
+ ### <ins>Minimize</ins>
208
+ The minimize (min) set-mode finds set of seeds of minimal size which satisfies all the constraints.
209
+
210
+ This method of search **ensures minimality**. But it is computationally more demanding.
211
+
212
+ > 📃 **Example:**
213
+ >
214
+ > Considering all the followings sets of seeds below, that statisfy constraints for the objective, which of them are of minimal size and will be selected?
215
+ >
216
+ > | Sets of seeds | is choosen ? | reasons |
217
+ > |:--------------:|:---------------:|:-------------:|
218
+ > | {A,B,C,D,E} | no | There is a smaller set of size 3 existing |
219
+ > | {A,B,C} | yes | This a one of the smaller set |
220
+ > | {A,D,E,F} | no | There is a smaller set of size 3 existing |
221
+ > | {A,D,F} | yes | This a one of the smaller set |
222
+ > | {A,C,E,F} | no | There is a smaller set of size 3 existing|
223
+
224
+ </br>
225
+
226
+ </br>
227
+ <hr style="border: 4px outset" size="8" >
228
+
229
+ ## Results
230
+ For each mode, a result json file is created. This file will write all models for all submodes reasoning / hybrid and **set-mode** subset minimial / minimize.
231
+
232
+ If the check-flux option is used, `-cf` / `--check-flux`, a tsv file is created with all the fluxes calculated with Cobrapy, and if hybrid submode or fba mode is used, the LP flux found (calculated from ASP).
233
+
234
+ The results are also written in the terminal.
235
+
236
+ </br>
237
+ <hr style="border: 4px outset" size="8" >
238
+
239
+ ## Additional features
240
+ ### 📜 [<ins>Network</ins>](documentations/network.mkd)
241
+ This feature can reconstruct a very basic picture of the network from the ASP conversion of the source network (in SBML format).
242
+ - It can create the picture with the reaction names, or without the reaction.
243
+ - It can also create all the reactions description / formula from ASP and Cobrapy and give a difference of both contents.
244
+ - It can write an SBML file derived from the SBML sources after correction of the network
245
+ - Deletion of reaction with boundaries [0,0]
246
+ - Exchanging set of reactants and products when boundaries negatives: ie [-1000, 0], [-100; -10], ...
247
+
248
+ > 💻 **Command:**
249
+ >
250
+ > `seed2lp network [network_file] [output_directory] [arguments]`
251
+
252
+ <br/>
253
+ <hr style="border: 1px dotted" >
254
+
255
+ ### 📜 [<ins>Flux</ins>](documentations/flux.mkd)
256
+ This feature allows the calculation, using Cobrapy library, of the flux of the objective function from a result file of seed2lp and save them. This can be a validation of the solutions provided by Seed2LP.
257
+
258
+ > 💻 **Command:**
259
+ >
260
+ > `seed2lp flux [network_file] [seed2lp_result_file]`
261
+
262
+
263
+
264
+ > 📝 **Notes:**
265
+ >
266
+ > It is possible to do the flux calculation using Cobrapy directly after the seed search by using the argument `-cf` / `--check-flux` on each mode. A tsv file is created with all the fluxes calculated with Cobrapy, and if hybrid submode or fba mode is used, the LP flux found (calculated from ASP).
267
+
268
+ </br>
269
+ <hr style="border: 4px outset" size="8" >
270
+
271
+ ## Main 📜 [options](documentations/options.mkd) for [search mode features](#search-mode-features)
272
+
273
+ ### <ins>Data given by user</ins>
274
+
275
+ | option | short| default | description | search mode |
276
+ |:----------------------:|:----:|:--------:|:------------:|:-------------:|
277
+ | --targets-file | -tf | optional | List of metabolites⭐ and/or <br/>an objective🔆 reaction as file | Target |
278
+ | --objective | -o | optional | An objective🔆 reaction <br/> as command line | Full Network and FBA |
279
+ | --seeds-file | -sf | optional | List of metabolites⭐ known to be seeds and will <br/> be in the initial set of seeds| ALL |
280
+ | --possible-seeds-file | -psf | optional | List of metabolites⭐ among which the seed selection will be performed <br/> be in the set of seeds | ALL |
281
+ | --forbidden-seeds-file | -fsf | optional | List of metabolites⭐ that can not <br/> be in the set of seeds | ALL |
282
+
283
+
284
+ > 📝 **Notes:**
285
+ >
286
+ > **Target** search mode :
287
+ >
288
+ > - If **no target file** given, the targets will be the **reactants of the objective reaction** found in the SBML file. The flux calculation will be done **on the objective objective reaction** found in the SBML file.
289
+ > - If only **Metabolites** given in the file: the targets will be **these given metabolites**. The flux calculation will be done on the **objective objective reaction** found in the SBML file.
290
+ > - If only **Reaction** given in the file: the targets will be the **reactants of the objective reaction** found in the SBML file. The flux calculation will be done **on this given reaction**
291
+ > - If both **Metabolites** and **Reaction** given in the file: the targets will be **these given metabolites**. The flux calculation will be done **on this given reaction**
292
+ >
293
+ > **Full network** (**hybrid** submode) and **FBA** :
294
+ >
295
+ >If no objective reaction given, the objective reaction will be the one found in the SBML file for flux calculation.
296
+
297
+ > 💬 **Comments:**
298
+ >
299
+ > ⭐ One metabolite by line, must be prefixed with "M_" to fit the ID of the SBML file.
300
+ >
301
+ > 🔆 One Objective reaction only, must be prefixed with "R_" to fit the ID of the SBML file.
302
+
303
+
304
+ <br/>
305
+ <hr style="border: 1px dotted" >
306
+
307
+ ### <ins>Set mode</ins>
308
+
309
+ | option | short| default | description | search mode |
310
+ |:-----------:|:----:|:--------:|:------------:|:-------------:|
311
+ | --mode | -m | subsetmin | run different set modes: <br/> minimize, subsetmin, all | ALL |
312
+ | --solve | -so | reasoning | run different submodes: <br/> reasoning, filter, gues-check, hybrid, all | Full Network<br> and Target |
313
+
314
+
315
+ <br/>
316
+ <hr style="border: 1px dotted" >
317
+
318
+ ### <ins>Set of seed restrictions</ins>
319
+
320
+ | option | short| default | description | search mode |
321
+ |:----------------------:|:----:|:--------:|:------------:|:-------------:|
322
+ | --targets-as-seeds | -tas | False | If used, targets found are given, <br/> allowed to be in the set of seeds | ALL |
323
+ | --topological-injection | -ti | False | If used, the exchange⭐ metabolite <br/> from source file are set as seeds directly | ALL |
324
+ | --keep-import-reactions | -kir | False | If used, the exchange⭐ reactions <br/> are not deleted during the conversion to ASP| ALL |
325
+ | --accumulation | -accu | False | If used, solutions with possible <br/> accumulating metabolites are allowed | Full Network <br/> and Target |
326
+
327
+
328
+ > 💬 **Comments:**
329
+ >
330
+ > ⭐ An **exchange reaction** is defined as a reaction having **one or multiple metabolites** as reactants or products (while the other set must be empty), it represent import or export reactions, and can be reversible or not, written forwards or backwards:
331
+ > - R ⟶ ∅ $\quad$|$\quad$ R ⟷ ∅ $\quad$|$\quad$ R ⟵ ∅
332
+ > - ∅ ⟶ P $\quad$|$\quad$ ∅ ⟷ P $\quad$|$\quad$ ∅ ⟵ P
333
+ >
334
+ > An **exchange metabolite** will be the metabolite involved in the exchange reaction
335
+
336
+
337
+ <br/>
338
+ <hr style="border: 1px dotted" >
339
+
340
+ ### <ins>Flux</ins>
341
+
342
+ | option | short| default | description | search mode |
343
+ |:----------------------:|:----:|:--------:|:------------:|:-------------:|
344
+ | --check-flux | -cf | False | If used, the Cobrapy flux calculation <br/> from seeds will be executed and saved | ALL |
345
+ | --maximize-flux | -max | False | If used, the flux calculation <br/> with ASP will be maximized | ALL⭐ |
346
+
347
+
348
+ > 💬 **Comments:**
349
+ >
350
+ > ⭐ The option is used only in [Hybrid](documentations/hybrid.mkd) mode for [Full Network](documentations/full_network.mkd) and [Target](documentations/target.mkd) search mode features.
351
+
352
+
353
+ </br>
354
+ <hr style="border: 4px outset" size="8" >
355
+
356
+ ## Configuration file
357
+ The application has its own configuration file located [here: seed2lp/config.yaml](seed2lp/config.yaml).
358
+
359
+ It is possible to use another configuration file by using the option `-conf` or `--config-file`.
360
+
361
+ But all these configurations are overwritten by the arguments if used. The config file is used as "the default configuration" of your app.
362
+
363
+
364
+ </br>
365
+ <hr style="border: 4px outset" size="8" >
366
+
367
+ ## Output files
368
+ ### Result file
369
+
370
+ <br/>
371
+ <hr style="border: 1px dotted" >
372
+
373
+ ### Flux file
374
+
375
+
376
+ </br>
377
+ <hr style="border: 4px outset" size="8" >
378
+ <hr style="border: 4px outset" size="8" >
379
+
380
+ ## Troubleshooting
381
+ ### GCC version
382
+ Seed2Lp needs a gcc version >= 7.
383
+
384
+
385
+ > 💻 Linux Commands:
386
+ >
387
+ > **Check your version:**
388
+ >```
389
+ >gcc --version
390
+ >```
391
+ >
392
+ > **Install latest version (here v11):**
393
+ >```
394
+ > sudo apt install gcc-11
395
+ >```
396
+ >
397
+ > **Link to the latest version (here v11):**
398
+ >```
399
+ > sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 20
400
+ >```
401
+ > **Check your version:**
402
+ >```
403
+ >gcc --version
404
+ >```
@@ -0,0 +1,53 @@
1
+ seed2lp/__init__.py,sha256=zWlSZ8ABRjc2pvv4U3pQ3k6d_n783xGyYWLLH5SOzf0,394
2
+ seed2lp/__main__.py,sha256=oaa-8aM5IR1vlws1fe4bz1ctHcJnWpHjhHglDMUgdmU,31891
3
+ seed2lp/_version.py,sha256=iMaYTeNtl7FfwZYJd_11tQ8i8-zQy0TKwx6ZoTAuJWU,75
4
+ seed2lp/argument.py,sha256=WatRTXyBsG-VtNw9GE1K_WmkvZDDVWPUzjs1v5Z0iKo,29716
5
+ seed2lp/clingo_lpx.py,sha256=S0a91PI4kSjjuVVmWUyE21VgAclRUCIrB4vjP8bhaRo,9403
6
+ seed2lp/color.py,sha256=GVRb5uuljv-EW9n7QFpaiXzZJ1-deIVXF4zoeVEepIc,715
7
+ seed2lp/config.yaml,sha256=FosxRNjvm5vOO-mYH0Ado8EEc8KrNf92s36_3WiAI-U,1900
8
+ seed2lp/description.py,sha256=vdOYsoOH5ySy2o2LJZCiqhreDaoZEzGVmEB8I7Oj7Iw,20106
9
+ seed2lp/file.py,sha256=GDP3TlWHlfOvdbLMJ1J2GdP5z4mQT6h_6Mhagw9bzmk,4026
10
+ seed2lp/flux.py,sha256=kN_O2ShrZy0I9kkIhV6b2GVplX755LSrgEKHG4n35Xc,15036
11
+ seed2lp/linear.py,sha256=tpBd1-LouHof4_69pITDxxCkAV6uSlL3JRssnXeyTMo,22048
12
+ seed2lp/log_conf.yaml,sha256=L50fqplrENJwZBK087pYpgaDss3JK0H3qUhbXxKWhec,507
13
+ seed2lp/logger.py,sha256=4d8UBKkv7czcJ2B9qk2Zcc8OGR8aeHF5J51qcRHnFhk,3008
14
+ seed2lp/metabolite.py,sha256=tlqYfmiybaXykIpDNA3qRmRPiO0Gso-DsZingJZtSj4,2120
15
+ seed2lp/network.py,sha256=dbp1eEsenvImEOPn7mvBpJp-9VmUPCiquV-b3R78BAA,92038
16
+ seed2lp/reaction.py,sha256=Ot-Bly2E-w0BNA6PXMFGDHvtU4EDUdm7G-wfa8gbB4g,9576
17
+ seed2lp/reasoning.py,sha256=-rmHokcwlNgJ7ijFYDf6TRkLCwssyt2qoQWPs4kPu5I,21178
18
+ seed2lp/reasoningcom.py,sha256=tgpwO7TcDk3d1zTfs-6W-8Lk54uzODra1CxwilWpywA,37791
19
+ seed2lp/reasoninghybrid.py,sha256=Lsr8AWIbE5cL4uVchqCTp7aTW5KVy2_ejs7YIR5KK5Q,39266
20
+ seed2lp/resmod.py,sha256=eSp0n7IjBRD15a4oKl69femmZGHkKDoF_mX5nIrczi4,3588
21
+ seed2lp/sbml.py,sha256=7aBvsXLpIbZPByq3f74YyxbI191pNIqPFeocmaC0GJ8,10169
22
+ seed2lp/scope.py,sha256=XiiYFf6cjP1pJ1f0nOg6FXxTl9wd0v_9mCdzlKpy5aM,5645
23
+ seed2lp/solver.py,sha256=7B8hEW8WWEYYU39HIzQUwPSP17rcAjcsDKpMq0HjshU,16937
24
+ seed2lp/temp_flux_com.py,sha256=9ceHfXZ2Thc5KtsRNTsawrvFOE-33HyNUU13I-pjviE,2553
25
+ seed2lp/utils.py,sha256=s6aDOhymwuxVkHC9M3DQD3A1vkBrSmGgzKwYmZc62Ss,8493
26
+ seed2lp/asp/atom_for_transfers.lp,sha256=w8Lg_s1bEcdsuBXBVlPgFpOhyZZcF0UyHOrDS4gLGtg,320
27
+ seed2lp/asp/community_heuristic.lp,sha256=2FKrNLbIJG14QdjrEE0rMlGOP_l5mw9n2ZDoT5unRrc,140
28
+ seed2lp/asp/community_search.lp,sha256=Q0yCdH2NufmXgyPMEdtlgFDAMR8uS92ExjYIar6Nwjk,703
29
+ seed2lp/asp/constraints_targets.lp,sha256=uiVrXjKo19lES7LcNXA48Evl0PKPT3OoBAj7dGHSmeM,528
30
+ seed2lp/asp/definition_atoms.lp,sha256=FuWXggEq0VHk9iW67-tjVVT-U71JI0wNalzmkTP4TDM,3583
31
+ seed2lp/asp/enum-cc.lp,sha256=f9j25v4U75QPbJf8yjBdWuABd74cAebvC7vet69vTJ0,1316
32
+ seed2lp/asp/flux.lp,sha256=vaKcTWUXvsmYyAa903zIrKr3_NKf5yzT94X_wV-AQkU,3596
33
+ seed2lp/asp/limit_transfers.lp,sha256=R0xv5spWrmJtrkymCoJo-2kh7JDQYkDmdG0NTYxzzv8,411
34
+ seed2lp/asp/maximize_flux.lp,sha256=L5u-gjlfYJncXEeg90y_GmM_XGSckjJPJ_7fcgVbVE8,46
35
+ seed2lp/asp/maximize_produced_target.lp,sha256=Z-b9x1YEua489s1ydhVftB4K6RN1a53uX02dXh9WRFE,345
36
+ seed2lp/asp/minimize.lp,sha256=y7xKdeCZAXLgJzCQ0Q5OSSqbRkP-CI4G8gTGsdubPW4,315
37
+ seed2lp/asp/seed-solving.lp,sha256=uoVUEVpv0AXJzUae-uPKiHeN7mWO9fUCmRFSZ4yqSl4,5066
38
+ seed2lp/asp/seed_external.lp,sha256=FGLXh9rfg3FtdkvPuEGIqCAgwTtFMlJZHopPmQxojlQ,45
39
+ seed2lp/asp/show_seeds.lp,sha256=N3dKwHB1idgfFvxR5x-BpbCURIPo5knXJ9gdjxw9KN8,32
40
+ seed2lp/asp/show_tranfers.lp,sha256=r5q1LsZ4JBZv7GhFLmTmzv592i9K4_-ppa-HVK7jMpY,20
41
+ seed2lp/asp/test.lp,sha256=P79bIUCT_wZUho5oT1JLSfpRXbrnUXXgcg_hfeRGn-w,1199
42
+ seed2lp-2.0.0.dist-info/licenses/LICENCE.txt,sha256=rymAta8z0pwrrZEKjbZ7sKE4SwTwIibuHYwF3cNo51w,7662
43
+ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
+ tests/fba.py,sha256=a7E82uLdYEWa2vU-XFrehx5mm-ET5xgOqIpdEjzckWc,5156
45
+ tests/full_network.py,sha256=8WIqRbCz7N0US1lBMaYxFdcbsj1VhLI3Nbz2LC1oXHw,6001
46
+ tests/normalization.py,sha256=DeW07Y7Zidp8Vm2ADUjgDjCLmTxvD5jll69AGJKUzC4,5895
47
+ tests/target.py,sha256=_hGod6xEInMx1l4SD1iG2cnBxD7L7jdcM226x7AcrhM,9645
48
+ tests/utils.py,sha256=TXMqUzrMAbY6A4J0F6xzXFB_fy7ppsq-RZxjLtXGVLQ,6688
49
+ seed2lp-2.0.0.dist-info/METADATA,sha256=bICF5wLdg3HmTVBFQgjCMJzyfrfHsFv6320auCRqRIY,17359
50
+ seed2lp-2.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
51
+ seed2lp-2.0.0.dist-info/entry_points.txt,sha256=eVeu66obgZSj5jsvbJ4mdtchMU7hkfQLFY8ThuU0GNA,50
52
+ seed2lp-2.0.0.dist-info/top_level.txt,sha256=I0kzFikY6lfRvzNZbs01GkkBTRnGVHxvBmPhpr-hEaY,14
53
+ seed2lp-2.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ seed2lp = seed2lp.__main__:main
@@ -0,0 +1,145 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+
6
+ Everyone is permitted to copy and distribute verbatim copies of this license
7
+ document, but changing it is not allowed.
8
+
9
+ This version of the GNU Lesser General Public License incorporates the terms and
10
+ conditions of version 3 of the GNU General Public License, supplemented by the
11
+ additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, “this License” refers to version 3 of the GNU Lesser General
16
+ Public License, and the “GNU GPL” refers to version 3 of the GNU General Public
17
+ License.
18
+
19
+ “The Library” refers to a covered work governed by this License, other than an
20
+ Application or a Combined Work as defined below.
21
+
22
+ An “Application” is any work that makes use of an interface provided by the
23
+ Library, but which is not otherwise based on the Library. Defining a subclass of
24
+ a class defined by the Library is deemed a mode of using an interface provided
25
+ by the Library.
26
+
27
+ A “Combined Work” is a work produced by combining or linking an Application with
28
+ the Library. The particular version of the Library with which the Combined Work
29
+ was made is also called the “Linked Version”.
30
+
31
+ The “Minimal Corresponding Source” for a Combined Work means the Corresponding
32
+ Source for the Combined Work, excluding any source code for portions of the
33
+ Combined Work that, considered in isolation, are based on the Application, and
34
+ not on the Linked Version.
35
+
36
+ The “Corresponding Application Code” for a Combined Work means the object code
37
+ and/or source code for the Application, including any data and utility programs
38
+ needed for reproducing the Combined Work from the Application, but excluding the
39
+ System Libraries of the Combined Work.
40
+
41
+ 1. Exception to Section 3 of the GNU GPL.
42
+
43
+ You may convey a covered work under sections 3 and 4 of this License without
44
+ being bound by section 3 of the GNU GPL.
45
+
46
+ 2. Conveying Modified Versions.
47
+
48
+ If you modify a copy of the Library, and, in your modifications, a facility
49
+ refers to a function or data to be supplied by an Application that uses the
50
+ facility (other than as an argument passed when the facility is invoked), then
51
+ you may convey a copy of the modified version:
52
+
53
+ a) under this License, provided that you make a good faith effort to ensure
54
+ that, in the event an Application does not supply the function or data, the
55
+ facility still operates, and performs whatever part of its purpose remains
56
+ meaningful, or
57
+ b) under the GNU GPL, with none of the additional permissions of this License
58
+ applicable to that copy.
59
+
60
+ 3. Object Code Incorporating Material from Library Header Files.
61
+
62
+ The object code form of an Application may incorporate material from a header
63
+ file that is part of the Library. You may convey such object code under terms of
64
+ your choice, provided that, if the incorporated material is not limited to
65
+ numerical parameters, data structure layouts and accessors, or small macros,
66
+ inline functions and templates (ten or fewer lines in length), you do both of
67
+ the following:
68
+
69
+ a) Give prominent notice with each copy of the object code that the Library
70
+ is used in it and that the Library and its use are covered by this License.
71
+ b) Accompany the object code with a copy of the GNU GPL and this license
72
+ document.
73
+
74
+ 4. Combined Works.
75
+
76
+ You may convey a Combined Work under terms of your choice that, taken together,
77
+ effectively do not restrict modification of the portions of the Library
78
+ contained in the Combined Work and reverse engineering for debugging such
79
+ modifications, if you also do each of the following:
80
+
81
+ a) Give prominent notice with each copy of the Combined Work that the
82
+ Library is used in it and that the Library and its use are covered by this
83
+ License.
84
+ b) Accompany the Combined Work with a copy of the GNU GPL and this
85
+ license document.
86
+ c) For a Combined Work that displays copyright notices during execution,
87
+ include the copyright notice for the Library among these notices, as well
88
+ as a reference directing the user to the copies of the GNU GPL and this
89
+ license document.
90
+ d) Do one of the following:
91
+ 0) Convey the Minimal Corresponding Source under the terms of this
92
+ License, and the Corresponding Application Code in a form suitable for,
93
+ and under terms that permit, the user to recombine or relink the
94
+ Application with a modified version of the Linked Version to produce a
95
+ modified Combined Work, in the manner specified by section 6 of the GNU
96
+ GPL for conveying Corresponding Source.
97
+ 1) Use a suitable shared library
98
+ mechanism for linking with the Library. A suitable mechanism is one that
99
+ (a) uses at run time a copy of the Library already present on the user's
100
+ computer system, and (b) will operate properly with a modified version
101
+ of the Library that is interface-compatible with the Linked Version.
102
+ e) Provide Installation Information, but only if you would otherwise be
103
+ required to provide such information under section 6 of the GNU GPL, and
104
+ only to the extent that such information is necessary to install and execute
105
+ a modified version of the Combined Work produced by recombining or relinking
106
+ the Application with a modified version of the Linked Version. (If you use
107
+ option 4d0, the Installation Information must accompany the Minimal
108
+ Corresponding Source and Corresponding Application Code. If you use option
109
+ 4d1, you must provide the Installation Information in the manner specified
110
+ by section 6 of the GNU GPL for conveying Corresponding Source.)
111
+
112
+ 5. Combined Libraries.
113
+
114
+ You may place library facilities that are a work based on the Library side by
115
+ side in a single library together with other library facilities that are not
116
+ Applications and are not covered by this License, and convey such a combined
117
+ library under terms of your choice, if you do both of the following:
118
+
119
+ a) Accompany the combined library with a copy of the same work based on the
120
+ Library, uncombined with any other library facilities, conveyed under the
121
+ terms of this License.
122
+ b) Give prominent notice with the combined library that part of it is a work
123
+ based on the Library, and explaining where to find the accompanying
124
+ uncombined form of the same work.
125
+
126
+ 6. Revised Versions of the GNU Lesser General Public License.
127
+
128
+ The Free Software Foundation may publish revised and/or new versions of the GNU
129
+ Lesser General Public License from time to time. Such new versions will be
130
+ similar in spirit to the present version, but may differ in detail to address
131
+ new problems or concerns.
132
+
133
+ Each version is given a distinguishing version number. If the Library as you
134
+ received it specifies that a certain numbered version of the GNU Lesser General
135
+ Public License “or any later version” applies to it, you have the option of
136
+ following the terms and conditions either of that published version or of any
137
+ later version published by the Free Software Foundation. If the Library as you
138
+ received it does not specify a version number of the GNU Lesser General Public
139
+ License, you may choose any version of the GNU Lesser General Public License
140
+ ever published by the Free Software Foundation.
141
+
142
+ If the Library as you received it specifies that a proxy can decide whether
143
+ future versions of the GNU Lesser General Public License shall apply, that
144
+ proxy's public statement of acceptance of any version is permanent authorization
145
+ for you to choose that version for the Library.
@@ -0,0 +1,2 @@
1
+ seed2lp
2
+ tests
tests/__init__.py ADDED
File without changes