Skip to content

Commit 2f44903

Browse files
committed
updates and bugfixes
1 parent a06f180 commit 2f44903

14 files changed

+7136
-201
lines changed

libpython/qtmetadraft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def flush(self):
249249

250250

251251
## Developer mode options
252-
DEBUG_MODE = True
252+
DEBUG_MODE = False
253253
DEL_BLAST_TMP = True
254254

255255

metadradt-templates.wpr

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!wing
2+
#!version=7.0
3+
##################################################################
4+
# Wing project file #
5+
##################################################################
6+
[project attributes]
7+
proj.directory-list = [{'dirloc': loc('../metadraft_template_data_2021-1'),
8+
'excludes': (),
9+
'filter': u'All Source Files',
10+
'include_hidden': False,
11+
'recursive': True,
12+
'watch_for_changes': True}]
13+
proj.file-type = 'shared'

metadradt-templates.wpu

Lines changed: 338 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,338 @@
1+
#!wing
2+
#!version=7.0
3+
##################################################################
4+
# Wing project file : User-specific branch #
5+
##################################################################
6+
[user attributes]
7+
guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
8+
'windows': [{'name': 'ub3lFDhRh75gahfhLSJnNJZ0aL'\
9+
'Y5eOp7',
10+
'size-state': '',
11+
'type': 'dock',
12+
'view': {'area': 'tall',
13+
'constraint': None,
14+
'current_pages': [0,
15+
2],
16+
'full-screen': False,
17+
'notebook_display': 'normal',
18+
'notebook_percent': 0.25,
19+
'override_title': None,
20+
'pagelist': [('project',
21+
'tall',
22+
0,
23+
{'tree-state': {'file-sort-method': 'by name',
24+
'list-files-first': False,
25+
'tree-states': {'deep': {'expanded-nodes': [(0,)],
26+
'selected-nodes': [(0,)],
27+
'top-node': (0,)}},
28+
'tree-style': 'deep'}}),
29+
('snippets',
30+
'tall',
31+
0,
32+
{}),
33+
('browser',
34+
'tall',
35+
0,
36+
{}),
37+
('debug-stack',
38+
'tall',
39+
1,
40+
{}),
41+
('indent',
42+
'tall',
43+
2,
44+
{}),
45+
('source-assistant',
46+
'tall',
47+
2,
48+
{})],
49+
'primary_view_state': {'area': 'wide',
50+
'constraint': None,
51+
'current_pages': [1,
52+
6],
53+
'notebook_display': 'normal',
54+
'notebook_percent': 0.30000000000000004,
55+
'override_title': None,
56+
'pagelist': [('debug-breakpoints',
57+
'wide',
58+
0,
59+
{}),
60+
('debug-exceptions',
61+
'wide',
62+
0,
63+
{}),
64+
('interactive-search',
65+
'wide',
66+
0,
67+
{'fScope': {'fFileSetName': 'All Source Files',
68+
'fLocation': None,
69+
'fRecursive': True,
70+
'fType': 'project-files'},
71+
'fSearchSpec': {'fEndPos': None,
72+
'fIncludeLinenos': True,
73+
'fInterpretBackslashes': False,
74+
'fMatchCase': True,
75+
'fOmitBinary': True,
76+
'fRegexFlags': 40,
77+
'fReplaceText': u'getGPRIdAssociatedWithGeneLabel',
78+
'fReverse': False,
79+
'fSearchText': u'setLabel',
80+
'fStartPos': 0,
81+
'fStyle': 'text',
82+
'fWholeWords': False,
83+
'fWrap': True},
84+
'fUIOptions': {'fAutoBackground': True,
85+
'fFilePrefix': 'short-file',
86+
'fFindAfterReplace': True,
87+
'fInSelection': False,
88+
'fIncremental': True,
89+
'fReplaceOnDisk': False,
90+
'fShowFirstMatch': False,
91+
'fShowLineno': True,
92+
'fShowReplaceWidgets': False}}),
93+
('batch-search',
94+
'wide',
95+
0,
96+
{'fScope': {'fFileSetName': 'All Source Files',
97+
'fLocation': None,
98+
'fRecursive': True,
99+
'fType': 'project-files'},
100+
'fSearchSpec': {'fEndPos': None,
101+
'fIncludeLinenos': True,
102+
'fInterpretBackslashes': False,
103+
'fMatchCase': False,
104+
'fOmitBinary': True,
105+
'fRegexFlags': 42,
106+
'fReplaceText': '',
107+
'fReverse': False,
108+
'fSearchText': '',
109+
'fStartPos': 0,
110+
'fStyle': 'text',
111+
'fWholeWords': False,
112+
'fWrap': True},
113+
'fUIOptions': {'fAutoBackground': True,
114+
'fFilePrefix': 'short-file',
115+
'fFindAfterReplace': True,
116+
'fInSelection': False,
117+
'fIncremental': True,
118+
'fReplaceOnDisk': False,
119+
'fShowFirstMatch': False,
120+
'fShowLineno': True,
121+
'fShowReplaceWidgets': False},
122+
'replace-entry-expanded': False,
123+
'search-entry-expanded': False}),
124+
('debug-data',
125+
'wide',
126+
0,
127+
{}),
128+
('testing',
129+
'wide',
130+
0,
131+
{'added-files': [],
132+
'filter': u'',
133+
'recent-filters': None,
134+
'sort-order': 'alpha',
135+
'tree-state': {'expanded-nodes': [],
136+
'selected-nodes': [],
137+
'top-node': (0,)}}),
138+
('bookmarks',
139+
'wide',
140+
1,
141+
{'filter-text': ''}),
142+
('debug-io',
143+
'wide',
144+
1,
145+
{}),
146+
('debug-probe',
147+
'wide',
148+
2,
149+
{'active-range': (None,
150+
-1,
151+
-1),
152+
'attrib-starts': [],
153+
'code-line': '',
154+
'first-line': 0L,
155+
'folded-linenos': [],
156+
'history': {},
157+
'launch-id': None,
158+
'sel-line': 0L,
159+
'sel-line-start': 0L,
160+
'selection_end': 0L,
161+
'selection_start': 0L,
162+
'zoom': 0L}),
163+
('messages',
164+
'wide',
165+
2,
166+
{'current-domain': 0}),
167+
('debug-modules',
168+
'wide',
169+
1,
170+
{}),
171+
('os-command',
172+
'wide',
173+
1,
174+
{'last-percent': 0.8,
175+
'toolbox-percent': 1.0,
176+
'toolbox-tree-sel': ''}),
177+
('python-shell',
178+
'wide',
179+
2,
180+
{'active-range': (None,
181+
-1,
182+
-1),
183+
'attrib-starts': [],
184+
'code-line': '',
185+
'first-line': 0L,
186+
'folded-linenos': [],
187+
'history': {},
188+
'launch-id': None,
189+
'sel-line': 2L,
190+
'sel-line-start': 145L,
191+
'selection_end': 145L,
192+
'selection_start': 145L,
193+
'zoom': 0L}),
194+
('debug-watch',
195+
'wide',
196+
1,
197+
{'node-states': [],
198+
'tree-state': {'expanded-nodes': [],
199+
'selected-nodes': [],
200+
'top-node': (0,)}})],
201+
'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('../metadraft_template_data_2021-1/create_models_from_data_v3.py'),
202+
{'attrib-starts': [('build_bigg1|0|',
203+
9)],
204+
'code-line': ' models = [eco, hpyl, mtub, saur]\r\n',
205+
'first-line': 0L,
206+
'folded-linenos': [],
207+
'sel-line': 17L,
208+
'sel-line-start': 731L,
209+
'selection_end': 767L,
210+
'selection_start': 767L,
211+
'zoom': 3L},
212+
1604438732.704],
213+
[loc('../metadraft_template_data_2021-1/data/bigg2api/get_bigg2.py'),
214+
{'attrib-starts': [],
215+
'code-line': '',
216+
'first-line': 0L,
217+
'folded-linenos': [],
218+
'sel-line': 0L,
219+
'sel-line-start': 0L,
220+
'selection_end': 0L,
221+
'selection_start': 0L,
222+
'zoom': 0L},
223+
1604438815.72],
224+
[loc('../metadraft_template_data_2021-1/data/bigg2api/get_bigg2.py'),
225+
{'attrib-starts': [],
226+
'code-line': '\r\n',
227+
'first-line': 0L,
228+
'folded-linenos': [],
229+
'sel-line': 2L,
230+
'sel-line-start': 33L,
231+
'selection_end': 33L,
232+
'selection_start': 33L,
233+
'zoom': 4L},
234+
1604440281.472],
235+
[loc('../metadraft_template_data_2021-1/create_models_from_data_v3.py'),
236+
{'attrib-starts': [],
237+
'code-line': '"""\r\n',
238+
'first-line': 0L,
239+
'folded-linenos': [],
240+
'sel-line': 2L,
241+
'sel-line-start': 14L,
242+
'selection_end': 165L,
243+
'selection_start': 14L,
244+
'zoom': 3L},
245+
1604440290.351]],
246+
4),
247+
'current-loc': loc('../metadraft_template_data_2021-1/data/bigg2api/get_bigg2.py'),
248+
'editor-state-list': [(loc('../metadraft_template_data_2021-1/create_models_from_data_v3.py'),
249+
{'attrib-starts': [],
250+
'code-line': '"""\r\n',
251+
'first-line': 0L,
252+
'folded-linenos': [],
253+
'sel-line': 2L,
254+
'sel-line-start': 14L,
255+
'selection_end': 165L,
256+
'selection_start': 14L,
257+
'zoom': 3L}),
258+
(loc('../metadraft_template_data_2021-1/data/bigg2api/get_bigg2.py'),
259+
{'attrib-starts': [],
260+
'code-line': " print('Genepoo"\
261+
"l already contains:', gene['bigg_id'])\r\n",
262+
'first-line': 0L,
263+
'folded-linenos': [],
264+
'sel-line': 53L,
265+
'sel-line-start': 1827L,
266+
'selection_end': 1853L,
267+
'selection_start': 1853L,
268+
'zoom': 4L})],
269+
'has-focus': False,
270+
'locked': False},
271+
[loc('../metadraft_template_data_2021-1/create_models_from_data_v3.py'),
272+
loc('../metadraft_template_data_2021-1/data/bigg2api/get_bigg2.py')]),
273+
'open_files': [u'../metadraft_template_data_2021-1/create_models_from_data_v3.py',
274+
u'../metadraft_template_data_2021-1/data/bigg2api/get_bigg2.py']},
275+
'saved_notebook_display': None,
276+
'split_percents': {0: 0.5},
277+
'splits': 2,
278+
'tab_location': 'top',
279+
'traversal_pos': ((1,
280+
6),
281+
1604439963.632),
282+
'user_data': {}},
283+
'saved_notebook_display': None,
284+
'split_percents': {0: 0.5},
285+
'splits': 2,
286+
'tab_location': 'left',
287+
'traversal_pos': ((0,
288+
0),
289+
1571217101.562),
290+
'user_data': {}},
291+
'window-alloc': (21,
292+
0,
293+
1987,
294+
1407)}]}
295+
guimgr.recent-documents = [loc('../metadraft_template_data_2021-1/data/bigg2api/get_bigg2.py'),
296+
loc('../metadraft_template_data_2021-1/create_models_from_data_v3.py')]
297+
proj.auto-reformat-enable = 'disabled'
298+
proj.auto-reformatter = 'black'
299+
proj.auto-rstrip-on-save = 'on-save-project'
300+
proj.build-cmd = {None: ('default',
301+
None)}
302+
proj.env-vars = {None: ('default',
303+
[u''])}
304+
proj.indent-style-policy = 'warn'
305+
proj.line-ending-policy = 'warn'
306+
proj.preferred-indent-style = 'spaces-only'
307+
proj.preferred-line-ending = 'crlf'
308+
proj.pyexec = {None: ('activate',
309+
'conda activate metadraft')}
310+
proj.vcs-system-config = ('proj',
311+
{'bzr': {'versioncontrol.bzr.active': 'not-active',
312+
'versioncontrol.bzr.executable': u'bzr'},
313+
'cvs': {'versioncontrol.cvs.active': 'not-active',
314+
'versioncontrol.cvs.executable': u'cvs',
315+
'versioncontrol.cvs.extra-global-args': '-'\
316+
'z3'},
317+
'git': {'versioncontrol.git.active': 'active-if-p'\
318+
'roject-dir',
319+
'versioncontrol.git.executable': u'git',
320+
'versioncontrol.git.use-porcelain': True},
321+
'hg': {'versioncontrol.hg.active': 'not-active',
322+
'versioncontrol.hg.dont-find-unregistered': True,
323+
'versioncontrol.hg.executable': u'hg',
324+
'versioncontrol.hg.extra-global-args': '--'\
325+
'encoding=utf8'},
326+
'perforce': {'versioncontrol.perforce.active': 'n'\
327+
'ot-active',
328+
'versioncontrol.perforce.dont-find-unregistered': True,
329+
'versioncontrol.perforce.executable': u'p4',
330+
'versioncontrol.perforce.extra-global-args': ''},
331+
'svn': {'versioncontrol.svn.active': 'active-if-p'\
332+
'roject-dir',
333+
'versioncontrol.svn.executable': u'svn',
334+
'versioncontrol.svn.extra-global-args': '',
335+
'versioncontrol.svn.svnadmin-executable': u'svnadmin'}})
336+
testing.stored-results = (1,
337+
[],
338+
{})

tmp/_combine_/1_summary_report.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>MetaDraft Summary Report</title> </head> <body> <h2 id="page-top">MetaDraft Summary Report</h2> <p><strong>Input file:</strong> test.fasta<br/><strong>Metaproteome:</strong> bigg2-eco41<br/><strong>Result file:</strong> d:\Development\cbmpy-metadraft\blast_results\default\20-11-02\(test)-(bigg2-eco41)-(opt)_metalink.resplus.json<br/><strong>Report date:</strong> 2020-11-02 14:54<br/><strong>MetaDraft version:</strong> 0.9.3</p> <h3>Gene statistics</h3> <table width="80%" border="0" cellspacing="1" cellpadding="1"> <tbody> <tr><td><strong>Model</strong></td><td><strong>Percentage</strong></td><td><strong>Genes</strong></td><td><strong>Avg. score</strong></td></tr><tr><td>bigg2-eco41</td><td>100.0</td><td>33</td><td>1.0</td></tr><tr><td><strong>Total</strong></td><td><strong></strong></td><td><strong>33</strong></td><td><strong></strong></td></tr> </tbody> </table> <h3>Reaction statistics</h3> <table width="80%" border="0" cellspacing="1" cellpadding="1"> <tbody> <tr><td><strong>Model</strong></td><td><strong>Percentage</strong></td><td><strong>Reactions</strong></td><td><strong></strong></td></tr><tr><td>bigg2-eco41</td><td>100.0</td><td>56</td><td></td></tr><tr><td><strong>Total</strong></td><td><strong></strong></td><td><strong>56</strong></td><td><strong></strong></td></tr> </tbody> </table> <h3>Metabolite statistics</h3> <table width="80%" border="0" cellspacing="1" cellpadding="1"> <tbody> <tr><td><strong>Model</strong></td><td><strong>Percentage</strong></td><td><strong>Metabolites</strong></td><td><strong></strong></td></tr><tr><td>bigg2-eco41</td><td>100.0</td><td>129</td><td></td></tr><tr><td><strong>Total</strong></td><td><strong></strong></td><td><strong>129</strong></td><td><strong></strong></td></tr> </tbody> </table> <p><small>Generated by MetaDraft 0.9.3 &copy; <a href="https://systemsbioinformatics.github.io/metatoolkit/">MetaToolkit</a>.</small></p> </body> </html>

tmp/_combine_/2_gene_report.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

tmp/_combine_/3_reaction_report.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

tmp/_combine_/4_metabolite_report.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

tmp/_combine_/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5+
<title>MetaDraft Report</title>
6+
</head>
7+
<body>
8+
<h3 id="section-reports">Model Reports</h3>
9+
<ol>
10+
<li><a href="./1_summary_report.html">Summary report</a></li>
11+
<li><a href="./2_gene_report.html">Gene report</a></li>
12+
<li><a href="./3_reaction_report.html">Reaction report</a></li>
13+
<li><a href="./4_metabolite_report.html">Metabolite report</a></li>
14+
</ol>
15+
<h3 id="section-files">Included Files</h3>
16+
<ul>
17+
<li><a href="./test.xml">SBML 3 FBC</a> version of the reconstruction</li>
18+
<li><a href="./test.xls">Excel</a> format summary of the reconstruction</li>
19+
</ul>
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)