Skip to content

Commit 6eded39

Browse files
committed
Uploaded to pip. Fixes #2.
1 parent 392fcce commit 6eded39

File tree

3 files changed

+34
-26
lines changed

3 files changed

+34
-26
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ conda install -c bioconda cobra
3030
After that you can install CORDA using the pip from conda
3131

3232
```bash
33-
pip install https://github.com/cdiener/corda/archive/master.zip
33+
pip install corda
34+
```
35+
36+
To install the latest development version use
37+
38+
```bash
39+
pip install https://github.com/cdiener/corda/archive/devel.zip
3440
```
3541

3642
After CORDA for Python comes out of its infancy I will prepare a conda package

docs/index.ipynb

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@
171171
"output_type": "stream",
172172
"text": [
173173
"build status: reconstruction complete\n",
174-
"Inc. reactions: 33/101\n",
174+
"Inc. reactions: 20/60\n",
175175
" - unclear: 0/0\n",
176-
" - exclude: 32/100\n",
176+
" - exclude: 19/59\n",
177177
" - low and medium: 0/0\n",
178178
" - high: 1/1\n",
179179
"\n"
@@ -192,7 +192,7 @@
192192
"cell_type": "markdown",
193193
"metadata": {},
194194
"source": [
195-
"The metric you see are for irreversible reactions. We can obtain the reversible reconstruction using:"
195+
"The metric you see are for reversible reactions. We can obtain the irreversible reconstruction metrics by using:"
196196
]
197197
},
198198
{
@@ -203,19 +203,21 @@
203203
},
204204
"outputs": [
205205
{
206-
"data": {
207-
"text/plain": [
208-
"33"
209-
]
210-
},
211-
"execution_count": 6,
212-
"metadata": {},
213-
"output_type": "execute_result"
206+
"name": "stdout",
207+
"output_type": "stream",
208+
"text": [
209+
"build status: reconstruction complete\n",
210+
"Inc. reactions: 32/101\n",
211+
" - unclear: 0/0\n",
212+
" - exclude: 31/100\n",
213+
" - low and medium: 0/0\n",
214+
" - high: 1/1\n",
215+
"\n"
216+
]
214217
}
215218
],
216219
"source": [
217-
"rec = opt.cobra_model(name=\"minimum\")\n",
218-
"len(rec.reactions)"
220+
"print(opt.info(reversible=False))"
219221
]
220222
},
221223
{
@@ -245,9 +247,9 @@
245247
"output_type": "stream",
246248
"text": [
247249
"build status: reconstruction complete\n",
248-
"Inc. reactions: 39/102\n",
250+
"Inc. reactions: 24/61\n",
249251
" - unclear: 0/0\n",
250-
" - exclude: 37/100\n",
252+
" - exclude: 22/59\n",
251253
" - low and medium: 0/0\n",
252254
" - high: 2/2\n",
253255
"\n"
@@ -278,24 +280,24 @@
278280
"name": "stdout",
279281
"output_type": "stream",
280282
"text": [
281-
"38\n",
283+
"37\n",
282284
"2pg <=> pep\n",
283285
"gtp + oaa <=> gdp + pep\n"
284286
]
285287
}
286288
],
287289
"source": [
288-
"rec2 = opt.cobra_model(\"plus_pep\")\n",
289-
"print(len(rec2.reactions))\n",
290-
"use = rec2.metabolites.pep.reactions\n",
290+
"rec = opt.cobra_model(\"plus_pep\")\n",
291+
"print(len(rec.reactions))\n",
292+
"use = rec.metabolites.pep.reactions\n",
291293
"for r in use: print(r.reaction)"
292294
]
293295
},
294296
{
295297
"cell_type": "markdown",
296298
"metadata": {},
297299
"source": [
298-
"As we can see the algorithm actually included two different ways of producing pep, from 3pg and from oaa and several other reactions. This is due to automatic inclusion of redundant pathways (which is good since it gives your model some robustness). If we do not want that feature we can modify the parameter n in the CORDA initializer."
300+
"By default CORDA uses redundancy. This means, in case there are several minimal pathways to reach your objective, CORDA will include several of those (which is good since it gives your model some robustness). If we do not want that feature we can modify the parameter n in the CORDA initializer which denotes the maximum number of redundant pathways to include."
299301
]
300302
},
301303
{
@@ -309,7 +311,7 @@
309311
"name": "stdout",
310312
"output_type": "stream",
311313
"text": [
312-
"33\n",
314+
"31\n",
313315
"gtp + oaa <=> gdp + pep\n"
314316
]
315317
}
@@ -318,9 +320,9 @@
318320
"opt = CORDA(mod, conf, met_prod=\"pep\", n=1)\n",
319321
"opt.build()\n",
320322
"\n",
321-
"rec3 = opt.cobra_model(\"plus_pep_nored\")\n",
322-
"print(len(rec3.reactions))\n",
323-
"use = rec3.metabolites.pep.reactions\n",
323+
"rec_min = opt.cobra_model(\"plus_pep_nored\")\n",
324+
"print(len(rec_min.reactions))\n",
325+
"use = rec_min.metabolites.pep.reactions\n",
324326
"for r in use: print(r.reaction)"
325327
]
326328
},

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
setup(
1515
name='corda',
16-
version='0.0.5',
16+
version='0.1',
1717
description='Genome-scale model construction with CORDA',
1818
long_description=long_description,
1919
url='https://github.com/cdiener/corda',

0 commit comments

Comments
 (0)