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

Feat/memote #162

Merged
merged 36 commits into from
Jul 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
35b9589
feat: memote config
BenjaSanchez Sep 18, 2018
d2385fc
fix: make travis_deploy.sh executable
BenjaSanchez Sep 18, 2018
8578762
fix: dos2unix travis_deploy.sh & memote.ini
BenjaSanchez Sep 18, 2018
1604002
feat: travis_wait for long builds
BenjaSanchez Sep 18, 2018
7a15ca4
fix: skip slow test
BenjaSanchez Sep 18, 2018
0544cd8
fix: skip 2nd slow test
BenjaSanchez Sep 18, 2018
c48ef51
fix: skip 3rd slow test
BenjaSanchez Sep 19, 2018
577e3d0
fix: skip 4th slow test
BenjaSanchez Sep 19, 2018
b65362a
fix: history report building
BenjaSanchez Sep 19, 2018
335366b
fix: moving report file
BenjaSanchez Sep 19, 2018
26294b3
fix: report location
BenjaSanchez Sep 19, 2018
65ca98c
feat: new badges
BenjaSanchez Sep 19, 2018
22a3072
fix: avoid switching branch
BenjaSanchez Sep 21, 2018
95905cc
fix: switch to SQLite
BenjaSanchez Sep 26, 2018
0c6bc04
test: SQLite
BenjaSanchez Sep 26, 2018
085700b
fix: skip commits with no .xml changes
BenjaSanchez Nov 23, 2018
2ee70ce
Merge branch 'devel' into feat/memote
BenjaSanchez Dec 3, 2018
a0eb24c
fix: skip thermodynamic test
BenjaSanchez Dec 3, 2018
5d4ef6a
doc: git lfs requirement
BenjaSanchez Dec 3, 2018
32d7e71
Merge branch 'feat/yaml-validation' into feat/memote
mihai-sysbio Jul 16, 2020
c96cc1c
feat: from travis to gh actions
mihai-sysbio Jul 16, 2020
cfe0db4
refactor: use second repo instance
mihai-sysbio Jul 17, 2020
efce14c
feat: remove travis integration
mihai-sysbio Jul 17, 2020
fb8533a
feat: split memote workflow
mihai-sysbio Jul 17, 2020
2594673
feat: memote workflow converts model, uses solver time limit
mihai-sysbio Jul 17, 2020
876ecce
fix: make sure .env exists
mihai-sysbio Jul 17, 2020
2f434f1
feat: add badge for memote history action
mihai-sysbio Jul 17, 2020
61976a5
Merge branch 'devel' into feat/memote
mihai-sysbio Apr 11, 2021
078be53
Merge branch 'fix/requirements' into feat/memote
mihai-sysbio Apr 11, 2021
2099e8c
Merge pull request #239 from mihai-sysbio/feat/memote
mihai-sysbio Apr 23, 2021
e551a3a
Merge branch 'devel' into feat/memote
mihai-sysbio Apr 26, 2021
077d716
refactor: memote history without re-writing SBML
mihai-sysbio Apr 27, 2021
56d725d
Merge branch 'devel' into feat/memote
mihai-sysbio Jun 30, 2021
fdb54dc
refactor: rename ComplementaryScripts to code
mihai-sysbio Jun 30, 2021
4dd4cf7
refactor: update model path in memote config
mihai-sysbio Jun 30, 2021
1d9c9eb
style: rename workflows
mihai-sysbio Jul 1, 2021
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
60 changes: 60 additions & 0 deletions .github/workflows/memote-history.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: memote history

on: push

jobs:
memote-history:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install memote
run: pip install -r requirements/ci-requirements.txt

- name: Setup variables
id: setup
run: |
echo "::set-output name=history::history_report.html"
echo "::set-output name=deployment::$(awk -F '=' '{if (! ($0 ~ /^;/) && $0 ~ /deployment/) print $2}' memote.ini | tr -d ' ')"
echo "::set-output name=other-repo::gh-pages-repo"
- name: Checkout repo for gh-pages branch
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
ref: ${{ steps.setup.outputs.deployment }}
path: ${{ steps.setup.outputs.other-repo }}

# - name: Convert model
# run: |
# touch .env
# python -c 'import code.io as io; model = io.read_yeast_model(make_bigg_compliant=True); io.write_yeast_model(model)'

- name: Memote short run
run: |
memote run --skip-unchanged --solver-timeout 30
- name: Compute Memote history on push
run: |
# Generate the history report on the deployment branch
memote report history --filename="${{ steps.setup.outputs.other-repo }}/${{ steps.setup.outputs.history }}"
- name: Auto-commit results
uses: stefanzweifel/[email protected]
with:
commit_user_name: memote-bot
commit_message: "chore: update memote history report"
file_pattern: ${{ steps.setup.outputs.history }}
branch: ${{ steps.setup.outputs.deployment }}
repository: ${{ steps.setup.outputs.other-repo }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/memote-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: memote run

on: pull_request

jobs:
memote-run:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install memote
run: pip install -r requirements/ci-requirements.txt

- name: Convert model
run: |
touch .env
python -c 'import code.io as io; model = io.read_yeast_model(make_bigg_compliant=True); io.write_yeast_model(model)'
- name: Memote on PR
run: |
# Untracked build, skip saving to gh-pages
memote run --ignore-git --solver-timeout 30
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@@ -0,0 +1,94 @@
# yeast-GEM: The consensus genome-scale metabolic model of _Saccharomyces cerevisiae_

[![DOI](https://zenodo.org/badge/52777598.svg)](https://zenodo.org/badge/latestdoi/52777598) [![GitHub version](https://badge.fury.io/gh/sysbiochalmers%2Fyeast-gem.svg)](https://badge.fury.io/gh/sysbiochalmers%2Fyeast-gem) [![Join the chat at https://gitter.im/SysBioChalmers/yeast-GEM](https://badges.gitter.im/SysBioChalmers/yeast-GEM.svg)](https://gitter.im/SysBioChalmers/yeast-GEM?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![DOI](https://zenodo.org/badge/52777598.svg)](https://zenodo.org/badge/latestdoi/52777598) [![GitHub version](https://badge.fury.io/gh/sysbiochalmers%2Fyeast-gem.svg)](https://badge.fury.io/gh/sysbiochalmers%2Fyeast-gem) [![Join the chat at https://gitter.im/SysBioChalmers/yeast-GEM](https://badges.gitter.im/SysBioChalmers/yeast-GEM.svg)](https://gitter.im/SysBioChalmers/yeast-GEM?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Memote history](https://github.com/SysBioChalmers/yeast-GEM/workflows/Memote%20history/badge.svg)](https://sysbiochalmers.github.io/yeast-GEM/history_report.html)

## Description

Expand Down Expand Up @@ -53,7 +53,14 @@ This repository contains the current consensus genome-scale metabolic model of _
* The [RAVEN toolbox for MATLAB](https://github.com/SysBioChalmers/RAVEN).
* A [git wrapper](https://github.com/manur/MATLAB-git) added to the search path.

### Dependencies - Recommended software:
**NOTE:** You also require [git lfs](https://git-lfs.github.com/) if you wish to run locally any of the following two [memote](https://github.com/opencobra/memote) commands:
* `memote run`
* `memote report history`

This is because `results.db` (the database that stores all memote results) is tracked with git lfs.

### Dependencies - Recommended Software:

* For Matlab, the [libSBML MATLAB API](https://sourceforge.net/projects/sbml/files/libsbml/MATLAB%20Interface/) (version 5.17.0 is recommended).
* [Gurobi Optimizer](http://www.gurobi.com/registration/download-reg) for any simulations.

Expand Down
6 changes: 6 additions & 0 deletions memote.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[memote]
model = model/yeast-GEM.xml
location = sqlite:///results.db
github_username = SysBioChalmers
github_repository = yeast-GEM
deployment = gh-pages
4 changes: 3 additions & 1 deletion requirements/ci-requirements.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Requirements for GitHub Actions:
cobra
memote
memote
python-dotenv
symengine