Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update/ecYeastGEM/v8.6.0/2022 07 03 20 48 59 #95

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/automation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: automation

on:
push:
branches-ignore:
- "update/**"
schedule:
- cron: '3 2 1 * *'

Expand All @@ -10,12 +13,12 @@ jobs:
timeout-minutes: 1200

steps:
- name: Clone repository on current branch
run: |
rm -rf *
git clone https://github.com/$GITHUB_REPOSITORY --branch ${GITHUB_REF#refs/heads/} latest-ecModels
- name: Clone repository on current branch
run: |
rm -rf *
git clone https://github.com/$GITHUB_REPOSITORY --branch ${GITHUB_REF#refs/heads/} latest-ecModels

- name: Run the pipeline
run: |
cd latest-ecModels
python3 run.py ${GITHUB_REF#refs/heads/}
- name: Run the pipeline
run: |
cd latest-ecModels
python3 run.py ${GITHUB_REF#refs/heads/}
20 changes: 10 additions & 10 deletions config.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[BASE]
url = https://github.com/SysBioChalmers/ecModels
pull_request_target = master
pull_request_target = main
install_dir = /home/m/ecModels-dependencies/

[MATLAB]
Expand All @@ -13,7 +13,7 @@ install_dir = cobratoolbox/

[RAVEN]
url = https://github.com/SysBioChalmers/RAVEN
version = v2.4.1
version = v2.6.2
install_dir = RAVEN/

[libSBML]
Expand All @@ -23,8 +23,8 @@ install_dir = libSBML/

[Gurobi]
url = https://www.gurobi.com/downloads/gurobi-software/
version = v9.1.1
install_dir = gurobi/
version = v9.5.1
install_dir = gurobi951/

[GECKO]
url = https://github.com/SysBioChalmers/GECKO
Expand All @@ -36,27 +36,27 @@ branch = master
type = 'gem'
url = https://github.com/SysBioChalmers/yeast-GEM
download_url =
model_filename = /ModelFiles/mat/yeastGEM.mat
model_filename = /model/yeast-GEM.mat
mat_model = .model
install_dir = yeast-GEM
version = v8.3.1
version = v8.6.0
database_tag = sce

[eciYali]
type = 'gem'
url = https://github.com/SysBioChalmers/Yarrowia_lipolytica_W29-GEM
download_url =
model_filename = /ModelFiles/mat/iYali.mat
model_filename = /model/iYali.mat
mat_model = .model
install_dir = Yali-GEM
version = v0
database_tag = yli

[eciSM966]
type = 'gem'
url = https://github.com/SysBioChalmers/Kluyveromyces_marxianus-GEM
download_url =
model_filename = /modelFiles/mat/Kluyveromyces_marxianus-GEM.mat
url =
download_url = https://raw.githubusercontent.com/SysBioChalmers/Kluyveromyces_marxianus-GEM/master/modelFiles/mat/Kluyveromyces_marxianus-GEM.mat
model_filename = /Kluyveromyces_marxianus-GEM.mat
mat_model = .model
install_dir = iSM966
version = v0
Expand Down
2 changes: 1 addition & 1 deletion ecHumanGEM/scripts/changeMedia_batch.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
unusedMets = [];
for i=1:length(mediaComps)
%Get metabolite indx
metIndx = getIndexes(model,strcat(mediaComps{i},'[s]'),'metcomps');
metIndx = getIndexes(model,strcat(mediaComps{i},'[e]'),'metcomps');
%Get rxns for metabolite
metRxns = find(model.S(metIndx,:));
%Get the uptake reaction for the metabolite
Expand Down
Binary file modified ecYeastGEM/model/ecYeastGEM.mat
Binary file not shown.
15,994 changes: 8,082 additions & 7,912 deletions ecYeastGEM/model/ecYeastGEM.txt

Large diffs are not rendered by default.

48,862 changes: 34,770 additions & 14,092 deletions ecYeastGEM/model/ecYeastGEM.xml

Large diffs are not rendered by default.

Binary file modified ecYeastGEM/model/ecYeastGEM_batch.mat
Binary file not shown.
15,994 changes: 8,082 additions & 7,912 deletions ecYeastGEM/model/ecYeastGEM_batch.txt

Large diffs are not rendered by default.

48,895 changes: 34,786 additions & 14,109 deletions ecYeastGEM/model/ecYeastGEM_batch.xml

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions ecYeastGEM/model/ecYeastGEM_exchangeFluxes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
EXCHANGE FLUXES:
r_1672 (carbon dioxide exchange): 30.7183
r_1761 (ethanol exchange): 27.018
r_1793 (formate exchange): 0.054878
r_1814 (glycolaldehyde exchange): 2.4581e-05
r_2100 (water exchange): 15.2977
r_2111 (growth): 0.3805
r_4527 (diphosphate exchange): 3.801
r_1654_REV (ammonium exchange (reversible)): 2.8771
r_1714_REV (D-glucose exchange (reversible)): 16.8695
r_1832_REV (H+ exchange (reversible)): 2.7635
r_1861_REV (iron(2+) exchange (reversible)): 1.1948e-05
r_1992_REV (oxygen exchange (reversible)): 3.1057
r_2005_REV (phosphate exchange (reversible)): 7.7833
r_2020_REV (potassium exchange (reversible)): 0.0013812
r_2049_REV (sodium exchange (reversible)): 0.0015106
r_2060_REV (sulphate exchange (reversible)): 0.034905
r_4593_REV (chloride exchange (reversible)): 0.00049085
r_4594_REV (Cu2(+) exchange (reversible)): 0.00025075
r_4595_REV (Mn(2+) exchange (reversible)): 0.0010388
r_4596_REV (Zn(2+) exchange (reversible)): 0.00028462
r_4597_REV (Mg(2+) exchange (reversible)): 0.00047279
r_4600_REV (Ca(2+) exchange (reversible)): 8.2569e-05
prot_pool_exchange (prot_pool_exchange): 0.1037
12 changes: 7 additions & 5 deletions ecYeastGEM/model/ecYeastGEM_kcatModifications.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Unicode,enz_pos,rxn_pos,Organism,Modified,Parameter,oldValue,newValue,error,ControlCoeff
P38604,3325,3657,bos taurus,1,SA*Mw,0.001937,4.07633,-42.4082,0.940936
P38972,2781,2898,escherichia coli,1,SA*Mw,0.05,5.06748,-28.4196,0.245601
P00931,3577,4061,salmonella enterica subsp. enterica serovar typhimurium,1,SA*Mw,0.022301,775.75,-19.119,0.129789
P48445,2803,2938,staphylococcus aureus,1,K_cat,1.22998,450000,-13.8453,0.065134
P05694,2787,3687,escherichia coli,1,SA*Mw,0.33,3.5,-9.90281,0.050713
P38604,3384,3764,bos taurus,1,SA*Mw,0.001937,4.07633,-60.8152,0.640444
P38972,2839,3004,escherichia coli,1,SA*Mw,0.05,5.06748,-46.6957,0.364734
P00931,3636,4168,salmonella enterica subsp. enterica serovar typhimurium,1,SA*Mw,0.022301,775.75,-24.4645,0.416489
P48445,2861,3044,staphylococcus aureus,1,K_cat,1.22998,450000,-19.8836,0.060583
P05694,2845,3794,escherichia coli,1,SA*Mw,0.33,3.5,-16.4844,0.047003
P32895,3525,3997,salmonella enterica subsp. enterica serovar typhimurium,1,SA*Mw,0.659993,1170,-12.7209,0.045044
P39006,3781,4685,escherichia coli,1,SA*Mw,0.053334,366.667,-9.02325,0.042325
20 changes: 10 additions & 10 deletions ecYeastGEM/model/ecYeastGEM_topUsedEnzymes.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
prots_Min_glucose,Usages_Min_glucose
P00360,0.109921
P36148,0.058404
P39006,0.043289
P33312,0.041048
P06169,0.034106
Q12122,0.028402
P54839,0.027071
P32462,0.026605
P32476,0.024687
P32895,0.024449
P00360,0.102283
P36148,0.059074
P33312,0.041458
P38620,0.034553
P06169,0.031227
Q12122,0.028686
P54839,0.027341
P32462,0.026871
P32476,0.024934
P07283,0.023345
13 changes: 7 additions & 6 deletions tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
DURL = 'download_url'
IDIR = 'install_dir'
SCRIPTSDIR = 'scripts'
PIPELINE_BASE_BRANCH = 'master'
PIPELINE_BASE_BRANCH = 'main'

logging.basicConfig(level=logging.DEBUG)
l = logging.getLogger(__name__)
Expand Down Expand Up @@ -67,8 +67,8 @@ def mat_model(self, gem):
def pr_target(self):
return self.config['BASE']['pull_request_target']

def git_clone(self, section, branch='master'):
cmd = sp.check_output(['git', 'clone', self.config[section][URL], '--depth', '1', '--branch', branch, self.install_dir(section)])
def git_clone(self, section, branch=PIPELINE_BASE_BRANCH):
cmd = sp.check_output(['hub', 'clone', self.config[section][URL], '--depth', '1', '--branch', branch, self.install_dir(section)])
l.info(cmd.decode('utf-8'))

def download(self, gem):
Expand Down Expand Up @@ -99,15 +99,16 @@ def git_add_and_pr(self, gem, matlab_output):
cmd = sp.check_output(['git', 'commit', '-m', 'chore: update {} based on {}'.format(gem, self.version(gem))])
l.info(cmd.decode('utf-8'))
l.critical('Will push and create PR')
cmd = sp.check_output(['git', 'push'])
l.info(cmd.decode('utf-8'))
# Create PR and also push
pr_filename = "/tmp/githubpr"
with open(pr_filename, "w") as f:
f.write("update {} based on {}\n\n".format(gem, self.version(gem)))
f.write("```matlab\n")
f.write(matlab_output)
f.write("\n```\n")
my_env = environ.copy()
cmd = sp.check_output(['hub', 'pull-request', '-F', pr_filename, '-b', self.pr_target(), '-p'], env=my_env)
cmd = sp.check_output(['gh', 'pr', 'create', '--body-file', pr_filename, '--base', self.pr_target(), '--fill'])
l.info(cmd.decode('utf-8'))
except sp.CalledProcessError:
l.critical('While upgrading {} to {} no changes were detected'.format(gem, self.version(gem)))
Expand Down Expand Up @@ -137,7 +138,7 @@ def check_dependencies(self):
l.info('{} is still {}'.format(tool, tool_version))
# Check COBRA, RAVEN, GECKO versions
self.cleanup('GECKO')
self.git_clone('GECKO')
self.git_clone('GECKO', self.config['GECKO']['branch'])
for tool in ['COBRA', 'RAVEN', 'GECKO']:
tool_version = self.git_tag(tool)
if tool_version != self.version(tool):
Expand Down