Skip to content

Commit 9937198

Browse files
committed
added more install information
1 parent 4da1ada commit 9937198

File tree

3 files changed

+16
-21
lines changed

3 files changed

+16
-21
lines changed

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ CBMPy Metadraft: a flexible and extensible, GUI-based genome-scale model reconst
55

66
### System dependencies
77

8-
MetaDraft requires working versions of Python, Perl, Java and NCBI Blast2. Once you have downloaded MetaDraft and it's Python dependencies, please run the *system test* script to that can be found in the MetaDraft directory:
8+
MetaDraft requires working versions of Python, Perl, Java and NCBI Blast2. Once you have downloaded MetaDraft and it's Python dependencies, please run the *system test* script to that can be found in the MetaDraft directory `python systemtest.py`.
99

10-
`python system-test.py`
10+
Typically the default Java runtime (JRE) installed on your system is all that is require, for Windows this can be obtained from [https://www.java.com/]. On Linux please use your favourite package manager, for example, when using Ubuntu/Debian based oeprating systems, try `sudo apt-get install default-jre`.
1111

1212
MetaDraft has been successfully tested using Windows 10, Ubuntu Linux 16.04/18.04, Python 2.7, Python 3.6, PyQt4 and PyQt5. MetaDraft is developed on Windows Anaconda Python 2.7 with PyQt5.
1313

@@ -19,17 +19,22 @@ Clone the cbmpy-metadraft git repository:
1919

2020
`git clone https://github.com/SystemsBioinformatics/cbmpy-metadraft.git`
2121

22-
MetaDraft ships with a single model template, to install the current template set, based on the BiGG2 repository, activate the template submodule:
22+
MetaDraft ships with a single model template, to install the current template set, based on the BiGG2 repository, change into the MetaDraft directory and activate the template submodule:
2323

24+
`cd cbmpy-metadraft`
2425
`git submodule update --init --remote -- modeldb/2018-1/`
2526

26-
You have now downloaded the latest version of MetaDraft, next please install the required Python dependencies. How you do this will depend on whether you want to use Conda or PIP.
27+
You have now downloaded the latest version of MetaDraft, next please run the system test script `python systemtest.py` to check your installation and then proceed to install the required Python dependencies. How you do this will depend on whether you use Conda or PIP.
2728

2829
## Creating a custom Anaconda Python environment
2930

30-
The following commands will create custom virtual environments with all the Python dependencies needed to run MetaDraft. Of course it is also possible to install the individual packages using "conda" or "pip" see the *requirements.txt* file for details of the required packages (see "pip" instructions below).
31+
The following commands will create custom virtual environments with all the Python dependencies needed to run MetaDraft. It is also possible to install the individual packages using "conda" or "pip" see the *requirements.txt* file for details of the required packages (see "pip" instructions below).
3132

32-
### For a Python 2 (recommended)
33+
Adding the the core packages (minimal) to an existing CONDA environment:
34+
35+
`conda install -c bgoli -c sbmlteam sip pyqt python-libsbml xlrd xlwt cbmpy biopython`
36+
37+
### New Python 2 CONDA environment (recommended)
3338

3439
Ubuntu (Linux-64)
3540

@@ -43,7 +48,7 @@ Windows 10 (Win-64)
4348
conda activate metadraft2
4449
./runwin.bat`
4550

46-
### For Python 3
51+
### New Python 3 CONDA environment
4752

4853
Windows 10 (Win-64)
4954

@@ -59,9 +64,9 @@ Using PyPI it is only possible to use Python 3. You can either install the packa
5964

6065
`pip install -r requirements.txt`
6166

62-
or individually install the core packages:
67+
or individually install the core packages (minimal):
6368

64-
`pip install ipython sip PyQt5 python-libsbml xlrd xlwt cbmpy biopython`
69+
`pip install sip PyQt5 python-libsbml xlrd xlwt cbmpy biopython`
6570

6671
Brett G. Olivier (b.g.olivier@vu.nl)
6772

libpython/biotools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ def createSeqplusModelMetaIdx(fmod, oid, oclass, metadraft_lib_model):
867867
- *class* the model category e.g. 'vu'
868868
- *metadraft_lib_model* the target MetaDraft lib_model directory
869869
870-
'edb', 'vu', "d:\@virdrives\google\work\python\metadraft\lib_model"
870+
'edb', 'vu', "<path>"
871871
872872
"""
873873

@@ -920,7 +920,6 @@ def createCDSdb(list_of_files):
920920
output[gbkf] = []
921921
GBFile = open(gbkf, 'r')
922922
GBcds = Bio.SeqIO.InsdcIO.GenBankCdsFeatureIterator(GBFile)
923-
cntr = 0
924923
for cds in GBcds:
925924
if cds.seq != None:
926925
data = {'pid' : cds.id,

libpython/qtmetadraft.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,15 +1907,6 @@ def deleteGeneFromTree(D, delid):
19071907
G.setNotes('These {} reactions were included from the {} model using MetaDraft (https://github.com/SystemsBioinformatics/metadraft) ver. {}'.format(len(new_groups[o]['grpd']), o, metadraft_version))
19081908
G.addMember([self._DAT_MODELS[o].getReaction(r_) for r_ in new_groups[o]['grpd']])
19091909

1910-
IDIOT = False
1911-
#for r_ in self.model.getReactionIds():
1912-
#if self.model.getGPRforReaction(r_) is None:
1913-
#print('-->', r_)
1914-
#IDIOT = True
1915-
if IDIOT:
1916-
self.model.serializeToDisk('debug_model.dat')
1917-
print('SERELEEZIFIED MODEL ...')
1918-
19191910
return self.model
19201911

19211912
@pyqtSlot()
@@ -3700,7 +3691,7 @@ def buildHtmlStringsGene(self, gene, genesrc):
37003691
assoc = assoc.replace(gene, '<strong>{}</strong>'.format(gene))
37013692

37023693
except AttributeError as why:
3703-
o_.serializeToDisk(o_.getId())
3694+
#o_.serializeToDisk(o_.getId())
37043695
print('ERROR: {} - {}'.format(gene, o_.getId()))
37053696
print(why)
37063697
assoc = '<span style="color: red;"><strong>{}</strong></span> '.format('UNKNOWN')

0 commit comments

Comments
 (0)