Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
ad35c41
fix: heneicosanoic acid in metabolicTasks_Full.txt
edkerk Sep 18, 2024
04f68f6
fix: remove non-metabolic genes FOSL1 and EGFR (#842)
edkerk Sep 22, 2024
6825e6b
Fix/peptide hydrolysis (#839)
pranasag Sep 22, 2024
d4995ae
Merge pull request #841 from SysBioChalmers/fix/metabolicTasks_Full
feiranl Sep 25, 2024
a89c522
feat: PR template mentions merge type (#866)
edkerk Sep 30, 2024
a5f18ca
feat: automated MACAW tests (#840)
edkerk Sep 30, 2024
760b376
Remove Duplicate V-Type ATPase Reaction (#829)
Devlin-Moyer Oct 17, 2024
cd98819
fix: style of macaw summary output
edkerk Oct 18, 2024
7911e20
chore: add macaw test result
edkerk Oct 18, 2024
19af535
feat: gene essentiality workflow (#675)
mihai-sysbio Oct 28, 2024
546d855
Merge branch 'develop' into feat/macaw_output
edkerk Oct 28, 2024
25dbea8
chore: add macaw test result
edkerk Oct 28, 2024
f2320fd
Merge pull request #882 from SysBioChalmers/feat/macaw_output
feiranl Nov 5, 2024
45b9f45
fix: commentMacaw.md
edkerk Nov 5, 2024
9ac4f79
fix-GPR_curation_for_Xenobiotics_metabolism
JHL-452b Nov 6, 2024
d2b35bf
chore: add macaw test result
JHL-452b Nov 6, 2024
5e88b8a
Merge pull request #913 from SysBioChalmers/fix-Xenobiotics_metabolism
feiranl Dec 4, 2024
d17703c
Fix: GPR curation for Starch and sucrose metabolism
JHL-452b Dec 6, 2024
548d5fa
chore: add macaw test result
JHL-452b Dec 6, 2024
8a855e8
Fix: GPR curation for subsystems related with amino acid
JHL-452b Dec 7, 2024
bc79aec
chore: add macaw test result
JHL-452b Dec 7, 2024
de49640
Fix: GPR curation for Sulfur metabolism
JHL-452b Dec 7, 2024
05cd3f4
chore: add macaw test result
JHL-452b Dec 7, 2024
0e0d55a
Merge pull request #937 from SysBioChalmers/Fix-Sulfur_metabolism
feiranl Dec 16, 2024
9bcaa1d
Merge branch 'develop' into Fix-Subsystems_relate_to_amino_acid
feiranl Dec 16, 2024
f9d560d
chore: add macaw test result
feiranl Dec 16, 2024
12fa860
Merge pull request #936 from SysBioChalmers/Fix-Subsystems_relate_to_…
feiranl Dec 16, 2024
9d6d12f
Merge branch 'develop' into Fix-Starch_and_sucrose_metabolism
feiranl Dec 16, 2024
30975e8
chore: add macaw test result
feiranl Dec 16, 2024
1ecf471
Merge pull request #933 from SysBioChalmers/Fix-Starch_and_sucrose_me…
feiranl Dec 16, 2024
ccc8b29
Fix Duplicate Stearoyl-CoA Beta-Oxidation Reactions (#820)
Devlin-Moyer Dec 17, 2024
ba8a4f3
Fix-GPR curation for fatty_acid_oxidation and Glycerolipid_metabolism…
JHL-452b Dec 17, 2024
dcfcf71
Fix gpr curation for histidine metabolism, propanoate metabolism and …
JHL-452b Dec 17, 2024
8186362
fix-GPR_curation_for_Gly_Ser_Thr_Val_Leu_Ile_metabolism (#885)
JHL-452b Dec 17, 2024
82fa361
Fix-GPR curation for Galactose, Fructose and mannose metabolism (#886)
JHL-452b Dec 17, 2024
c0f3a66
Fix-GPR curation for Purine metabolism (#898)
JHL-452b Dec 17, 2024
8cc9173
Fix-Phe, Tyr and Trp biosynthesis and Porphyrin metabolism (#899)
JHL-452b Dec 17, 2024
0fc5ae3
Fix: GPR curation for Inositol phosphate metabolism (#905)
JHL-452b Dec 17, 2024
7ebff3f
fix-GPR_curation_for_Serotonin and melatonin biosynthesis and Keratan…
JHL-452b Dec 17, 2024
6e5a5f6
Fix: GPR curation for retinol metabolism and riboflavin metabolism (#…
JHL-452b Dec 17, 2024
655b7f4
fix-GPR curation for PPP, TCA and Pyruvate metabolism (#915)
JHL-452b Dec 17, 2024
778e765
Fix: GPR curation for Carnitine shuttle (#923)
JHL-452b Dec 17, 2024
035e08e
Fix-GPR curation for EMP and Pentose and glucuronate interconversions…
JHL-452b Dec 17, 2024
d3472ad
Fix: GPR curation of Bile_acid_biosynthesis/recycling (#930)
JHL-452b Dec 17, 2024
18782b4
Fix: GPR curation for miscellaneous isolated drug metabolism (#931)
JHL-452b Dec 17, 2024
8dda4f7
Fix: GPR curation for pyrimidine metabolism (#932)
JHL-452b Dec 17, 2024
5af4173
Fix: GPR curation for Androgen metabolism and Prostaglandin biosynthe…
JHL-452b Dec 17, 2024
7de6638
chore: update model I/O functions and documentation (#883)
edkerk Dec 22, 2024
1a562ce
fix: remove non-associated genes (#939)
edkerk Dec 22, 2024
3534582
fix: GPR curation for Arg_Pro_Tyr_metabolism
JHL-452b Dec 23, 2024
17d7270
chore: add macaw test result
JHL-452b Dec 23, 2024
5e7c68c
fix: use readYAMLmodel and writeYAMLmodel (#942)
edkerk Dec 23, 2024
7f6ee40
Fix: remove empty "gene_reaction_rule"
JHL-452b Dec 23, 2024
008b443
Fix Various Issues with Lipoic Acid Biosynthesis (#830)
Devlin-Moyer Dec 23, 2024
b68806c
Fix: GPR curation for Sphingolipid metabolism
JHL-452b Dec 24, 2024
8e40b9b
chore: add macaw test result
JHL-452b Dec 24, 2024
1f58428
Fix: GPR curation for Glucocorticoid biosynthesis
JHL-452b Dec 24, 2024
febfb3b
chore: add macaw test result
JHL-452b Dec 24, 2024
72d1ffd
Fix: GPR curation for Estrogen and Steroid metabolism
JHL-452b Dec 24, 2024
300b588
chore: add macaw test result
JHL-452b Dec 24, 2024
928605b
fix: GPR curation for Leukotriene metabolism
JHL-452b Dec 28, 2024
84b3186
chore: add macaw test result
JHL-452b Dec 28, 2024
51366ad
Fix: GPR curation for Glycosphingolipid metabolism
JHL-452b Dec 29, 2024
01984c0
chore: add macaw test result
JHL-452b Dec 29, 2024
37a6269
fix: GPR curation for Transport rxns_1
JHL-452b Dec 30, 2024
be5d206
chore: add macaw test result
JHL-452b Dec 30, 2024
e2e5e5f
fix: GPR curation for Transport reactions (2)
JHL-452b Dec 30, 2024
7477f6d
chore: add macaw test result
JHL-452b Dec 30, 2024
e1f77e4
Fix: GPR curation for transport reactions (3)
JHL-452b Dec 30, 2024
2140080
chore: add macaw test result
JHL-452b Dec 30, 2024
4eebb72
fix: GPR curation for transport reactions (4)
JHL-452b Dec 30, 2024
ce3dc8b
chore: add macaw test result
JHL-452b Dec 30, 2024
aee9aa3
Fix: GPR curation for transport reactions (5)
JHL-452b Dec 30, 2024
3d1a044
chore: add macaw test result
JHL-452b Dec 30, 2024
1f8445c
fix: GPR curation for transport reactions (6)
JHL-452b Dec 30, 2024
bfdf3a0
chore: add macaw test result
JHL-452b Dec 30, 2024
6d672e4
fix: GPR curation for transport reactions (7)
JHL-452b Dec 30, 2024
c700a16
chore: add macaw test result
JHL-452b Dec 30, 2024
5948d30
fix: GPR curation for transport reactions (8)
JHL-452b Dec 31, 2024
3f06a62
chore: add macaw test result
JHL-452b Dec 31, 2024
7b36c5c
fix: GPR curation for transport reactions (9)
JHL-452b Dec 31, 2024
fff9d9a
chore: add macaw test result
JHL-452b Dec 31, 2024
cefffae
fix: GPR curation for transport reactions (10)
JHL-452b Dec 31, 2024
b9390d5
chore: add macaw test result
JHL-452b Dec 31, 2024
b93083e
fix: keep 'ENSG00000113396' for MAR00191
JHL-452b Jan 3, 2025
536987d
chore: add gene essentiality test result
JHL-452b Jan 3, 2025
4bdb0bc
Fix: remove ENSG00000100156 from MAR06054
JHL-452b Jan 5, 2025
0477d10
chore: add gene essentiality test result
JHL-452b Jan 5, 2025
7f3c86f
fix: curated the GPR of MAR05606
JHL-452b Jan 8, 2025
2abf661
chore: add gene essentiality test result
JHL-452b Jan 8, 2025
58ada35
fix: GPR curation for Arachidonic acid metabolism
JHL-452b Jan 8, 2025
7309fac
chore: add macaw test result
JHL-452b Jan 8, 2025
2e37c56
fix: remove ENSG00000162365 from MAR00934
JHL-452b Jan 8, 2025
21580af
Merge branch 'develop' into Fix_Arg_Pro_Tyr_metabolism
feiranl Jan 8, 2025
5ee3092
Merge pull request #946 from SysBioChalmers/Fix-Sphingolipid_metabolism
feiranl Jan 8, 2025
9f07c5d
chore: add gene essentiality test result
JHL-452b Jan 8, 2025
a70a9df
chore: add gene essentiality test result
feiranl Jan 8, 2025
8dcb80c
Merge branch 'develop' into Fix-Arachidonic_acid_metabolism
feiranl Jan 9, 2025
c0ba199
Merge pull request #962 from SysBioChalmers/Fix-Arachidonic_acid_meta…
feiranl Jan 9, 2025
4dcc4ef
Merge branch 'develop' into Fix-Transport_reactions_9
feiranl Jan 10, 2025
3725aa6
Merge pull request #959 from SysBioChalmers/Fix-Transport_reactions_9
feiranl Jan 10, 2025
d67dcad
Merge branch 'develop' into Fix-Transport_reactions_10
feiranl Jan 13, 2025
3762bf3
Merge pull request #960 from SysBioChalmers/Fix-Transport_reactions_10
feiranl Jan 13, 2025
2f85a64
Merge branch 'develop' into Fix-Transport_reactions_8
feiranl Jan 13, 2025
1f8ed20
Merge pull request #958 from SysBioChalmers/Fix-Transport_reactions_8
feiranl Jan 13, 2025
686b89c
Merge branch 'develop' into Fix-transport_reactions_7
feiranl Jan 13, 2025
5685b53
Merge pull request #957 from SysBioChalmers/Fix-transport_reactions_7
feiranl Jan 13, 2025
0da0f07
Merge branch 'develop' into Fix-Transport_reactions_6
feiranl Jan 13, 2025
23b196d
Merge pull request #956 from SysBioChalmers/Fix-Transport_reactions_6
feiranl Jan 13, 2025
b701a36
Merge branch 'develop' into Fix-Transport_reactions_5
feiranl Jan 13, 2025
a2e01bf
Merge pull request #955 from SysBioChalmers/Fix-Transport_reactions_5
feiranl Jan 13, 2025
514eb0a
Merge branch 'develop' into Fix-Transport_reactions_4
feiranl Jan 13, 2025
c8d91ed
Merge pull request #954 from SysBioChalmers/Fix-Transport_reactions_4
feiranl Jan 13, 2025
3e9dec3
Merge branch 'develop' into Fix-Transport_reactions_3
feiranl Jan 13, 2025
1e02d01
Merge pull request #953 from SysBioChalmers/Fix-Transport_reactions_3
feiranl Jan 13, 2025
bc0cf34
Merge branch 'develop' into Fix-transport_rxns_2
feiranl Jan 13, 2025
1c425c9
Merge pull request #952 from SysBioChalmers/Fix-transport_rxns_2
feiranl Jan 13, 2025
59f7767
Merge branch 'develop' into Fix-Glycosphingolipid_metabolism
feiranl Jan 13, 2025
f0aa043
Merge pull request #950 from SysBioChalmers/Fix-Glycosphingolipid_met…
feiranl Jan 13, 2025
4a7ddc1
Merge branch 'develop' into Fix-Glucocorticoid_biosynthesis
feiranl Jan 13, 2025
a09acc1
Merge pull request #947 from SysBioChalmers/Fix-Glucocorticoid_biosyn…
feiranl Jan 13, 2025
8ce6988
Merge branch 'develop' into Fix_Arg_Pro_Tyr_metabolism
feiranl Jan 13, 2025
f142917
Merge pull request #941 from SysBioChalmers/Fix_Arg_Pro_Tyr_metabolism
feiranl Jan 13, 2025
813228c
fix: add ENSG00000163082 to the GPR of MAR00775
JHL-452b Jan 16, 2025
7a51371
fix: remove non-associated genes
JHL-452b Jan 16, 2025
bfbb72a
chore: add macaw test result
JHL-452b Jan 16, 2025
f80caa0
Merge branch 'Fix-Leukotriene_metabolism' into develop
JHL-452b Jan 16, 2025
eb7ccd0
Merge branch 'Fix-Estrogen-and-Steroid_metabolism' into develop
JHL-452b Jan 16, 2025
2e73454
Merge branch 'Fix-Transport_reactions_1' into develop
JHL-452b Jan 18, 2025
3fc38f3
Merge branch 'develop' into Fix-remove_nonassociated_genes
JHL-452b Feb 12, 2025
ecc4031
chore: add gene essentiality test result
JHL-452b Feb 12, 2025
4edd2b2
Fix: add ENSG00000123684 to the GPR of MAR00644
JHL-452b Feb 12, 2025
0fd1c6e
chore: add gene essentiality test result
JHL-452b Feb 12, 2025
1aa9597
Merge pull request #965 from SysBioChalmers/Fix-remove_nonassociated_…
JHL-452b Feb 12, 2025
79a71cb
Fix: change the reversibility of MAR02041 and MAR02036
JHL-452b Feb 15, 2025
710719b
chore: add macaw test result
JHL-452b Feb 15, 2025
8bcb48f
Fix: change the bounds of MAR04644
JHL-452b Feb 15, 2025
5c845b1
chore: add macaw test result
JHL-452b Feb 15, 2025
7926223
Merge pull request #972 from SysBioChalmers/Fix-Curate_reversibility_…
JHL-452b Feb 17, 2025
0dbb554
Merge branch 'develop' into Fix-Curate-reversibility-of-MAR04644
JHL-452b Feb 17, 2025
a79a7bf
chore: add gene essentiality test result
JHL-452b Feb 17, 2025
ad1b27b
Merge pull request #973 from SysBioChalmers/Fix-Curate-reversibility-…
JHL-452b Feb 17, 2025
a243c1c
Fix: Curate the GPRs for FN and FP genes
JHL-452b Feb 17, 2025
9cb83e4
chore: add macaw test result
JHL-452b Feb 17, 2025
54834c1
Fix: curate GPRs with inconsistent compartments
JHL-452b Feb 17, 2025
3c8f3d5
chore: add macaw test result
JHL-452b Feb 17, 2025
9ffa031
Fix: curate GPRs of MAR09802, MAR04387 and MAR04386
JHL-452b Feb 17, 2025
06265ca
chore: add macaw test result
JHL-452b Feb 17, 2025
c1f23c0
Fix: curate the GPR of MAR06474
JHL-452b Feb 17, 2025
348245a
chore: add macaw test result
JHL-452b Feb 17, 2025
410ba3b
Merge pull request #981 from SysBioChalmers/Fix-Curate_incorrect_GPR_…
JHL-452b Feb 18, 2025
756b8a0
Merge branch 'develop' into Fix_Curate_GPRs_with_inconsistent_compart…
JHL-452b Feb 18, 2025
1d91d45
Merge pull request #982 from SysBioChalmers/Fix_Curate_GPRs_with_inco…
JHL-452b Feb 18, 2025
7a5153d
Merge branch 'develop' into Fix-GPRs_of_MAR09802_MAR04387_MAR04386
JHL-452b Feb 18, 2025
a168752
Merge pull request #983 from SysBioChalmers/Fix-GPRs_of_MAR09802_MAR0…
JHL-452b Feb 18, 2025
741c23c
Merge branch 'develop' into Fix-GPR_of_MAR06474
JHL-452b Feb 18, 2025
e3b037a
Merge pull request #984 from SysBioChalmers/Fix-GPR_of_MAR06474
JHL-452b Feb 18, 2025
ff231a2
Fix: remove reactions without genes associated with them
JHL-452b Mar 6, 2025
23ed39b
chore: add macaw test result
JHL-452b Mar 6, 2025
88d73ab
Merge pull request #987 from SysBioChalmers/Fix-Remove_rxns_without_g…
JHL-452b Mar 6, 2025
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
8 changes: 4 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Is it an additional test/function/dataset?
e.g. This PR improves/fixes # by ...
-->


**I hereby confirm that I have:**
<!-- *Note: replace [ ] with [X] to check the box. -->
- [ ] Tested my code on my own computer for running the model
- [ ] Selected `develop` as a target branch
- [ ] Any removed reactions and metabolites have been moved to the corresponding deprecated identifier lists
- [ ] Any removed reactions and metabolites have been moved to the corresponding deprecated identifier lists in `data/deprecatedIdentifiers/`.
<!-- Chose ONE of the following two options. -->
- [ ] This PR has `develop` as target branch, and will be resolved with a **squash-merge**.
- [ ] This PR has `main` as target branch, and will be resolved with a **merge commit**.
2 changes: 1 addition & 1 deletion .github/workflows/check-metabolictasks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test metabolic tasks

on: [push, pull_request]
on: [push]

jobs:
check-metabolictasks:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/commentGeneEssential.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This PR has been [automatically tested with GH Actions](https://github.com/SysBioChalmers/Human-GEM/actions/runs/{GH_ACTION_RUN}). Here is the output of the gene essentiality test:

<pre>
{TEST_RESULTS}
</pre>

> _Note: In the case of multiple test runs, this post will be edited._
9 changes: 9 additions & 0 deletions .github/workflows/commentMacaw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
This PR has been [automatically tested with GH Actions](https://github.com/SysBioChalmers/Human-GEM/actions/runs/{GH_ACTION_RUN}). Here is the output of the [MACAW](https://github.com/Devlin-Moyer/macaw) test:

<pre>
{TEST_RESULTS}
</pre>

This and a more detailed output from MACAW are also committed to `data/macawResults/`.

> _Note: In the case of multiple test runs, this post will be edited._
80 changes: 80 additions & 0 deletions .github/workflows/gene-essentiality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Check gene essentiality with Hart 2015

on:
pull_request:
branches:
- "main"
- "develop"

jobs:
gene-essentiality:
runs-on: self-hosted

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Fetch RAVEN
uses: actions/checkout@v4
with:
repository: "SysBioChalmers/RAVEN"
path: "RAVEN"

- name: Run gene essentiality
id: essentiality
run: >
TEST_RESULTS=$(/usr/local/bin/matlab -batch
"warning('off', 'MATLAB:rmpath:DirNotFound');
rmpath(genpath('/home/m/ecModels-dependencies/RAVEN'));
rmpath(genpath('/home/m/actions-runner'));
addpath(genpath('.'));
setRavenSolver('gurobi');
ihuman = readYAMLmodel('model/Human-GEM.yml');
taskStruct = parseTaskList('data/metabolicTasks/metabolicTasks_Essential.txt');
[~, eGenes] = evalc('estimateEssentialGenes(ihuman, ''Hart2015_RNAseq.txt'', taskStruct);');
output = transpose(evaluateHart2015Essentiality(eGenes));
fid = fopen('data/testResults/gene-essential.csv','w');
fprintf(fid,[repmat('%s,',1,9) '%s\n'],output{:,1});
fprintf(fid,['%s,%d,%d,%d,%d' repmat(',%.4g',1,5) '\n'],output{:,2:end});
fclose(fid);
disp(cell2table(transpose(output(:,2:end)),'VariableNames',output(:,1)));") &&
echo "$TEST_RESULTS" &&
PARSED_RESULTS="${TEST_RESULTS//$'\n'/'<br>'}" &&
PARSED_RESULTS="${PARSED_RESULTS//$'\r'/'<br>'}" &&
echo "results=$PARSED_RESULTS" >> $GITHUB_OUTPUT

- name: Mention PR# in README.md
env:
PR_NUMBER: ${{ github.event.number }}
run: sed -i -e "s/[[:digit:]]\{3,4\}\*\* (gene /$PR_NUMBER\*\* (gene /" data/testResults/README.md

- name: Update local branch before committing changes
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
git stash
git fetch
git checkout $BRANCH_NAME
if git stash list | grep -q 'stash@{'; then
git stash pop
fi

- name: Auto-commit results
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: memote-bot
commit_message: "chore: add gene essentiality test result"
file_pattern: data/testResults/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.number }}

- name: Post comment
uses: NejcZdovc/comment-pr@v2
with:
file: "commentGeneEssential.md"
identifier: "GITHUB_COMMENT_GENE"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
TEST_RESULTS: ${{steps.essentiality.outputs.results}}
GH_ACTION_RUN: ${{github.run_id}}
71 changes: 71 additions & 0 deletions .github/workflows/macaw-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Run macaw tests

on: [pull_request]

jobs:
macaw-tests:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Test checkout
run: ls -la && cd code && ls -la

- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install macaw
run: pip install git+https://github.com/Devlin-Moyer/macaw.git@main numpy==1.26.4

- name: Run macaw
id: macaw-run
run: |
TEST_RESULTS=$(python code/test/macawTests.py)
echo $TEST_RESULTS
PARSED_RESULTS="${TEST_RESULTS//$'\n'/'<br>'}"
PARSED_RESULTS="${PARSED_RESULTS//$'\r'/'<br>'}"
echo $PARSED_RESULTS
echo "results=$PARSED_RESULTS" >> $GITHUB_OUTPUT
printf "$TEST_RESULTS" > data/testResults/macaw_summary.md

- name: Mention PR# in README.md
env:
PR_NUMBER: ${{ github.event.number }}
run: sed -i -e "s/[[:digit:]]\{3,4\}\*\* (MACAW)/$PR_NUMBER\*\* (MACAW)/" data/testResults/README.md

- name: Update local branch before committing changes
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
git stash
git fetch
git checkout $BRANCH_NAME
if git stash list | grep -q 'stash@{'; then
git stash pop
fi

- name: Auto-commit results
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_name: memote-bot
commit_message: "chore: add macaw test result"
file_pattern: data/testResults/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.number }}

- name: Post comment
uses: NejcZdovc/comment-pr@v2
with:
file: "commentMacaw.md"
identifier: "GITHUB_COMMENT_MACAW"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
TEST_RESULTS: ${{steps.macaw-run.outputs.results}}
GH_ACTION_RUN: ${{github.run_id}}

2 changes: 1 addition & 1 deletion .github/workflows/yaml-conversion.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test YAML conversion

on: [push, pull_request]
on: [push]

jobs:
yaml-conversion:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yaml-validation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: YAML validation

on: [push, pull_request]
on: [push]

jobs:
yaml-validation:
Expand Down
93 changes: 38 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
# Human-GEM: The generic genome-scale metabolic model of _Homo sapiens_

[![Join the chat at https://gitter.im/SysBioChalmers/Human-GEM](https://badges.gitter.im/SysBioChalmers/Human-GEM.svg)](https://gitter.im/SysBioChalmers/Human-GEM?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![GitHub version](https://badge.fury.io/gh/sysbiochalmers%2FHuman-GEM.svg)](https://badge.fury.io/gh/sysbiochalmers%2FHuman-GEM)
[![DOI](https://zenodo.org/badge/105752644.svg)](https://zenodo.org/badge/latestdoi/105752644)<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-31-success.svg)](#contributors)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

### Brief Model Description

### Brief model description
This repository contains the latest version of Human-GEM, a human genome-scale metabolic model. We encourage [contributions](#contributing).

### Cite us:

If you use Human1 in your research, please cite:

> J. L. Robinson, P. Kocabasÿ, H. Wang, P.-E. Cholley, et al. An atlas of human metabolism. _Sci. Signal._ 13, eaaz1482 (2020). [doi:10.1126/scisignal.aaz1482](https://doi.org/10.1126/scisignal.aaz1482)

Starting from Human-GEM v1.5.0, all the releases are also archived in [Zenodo](https://doi.org/10.5281/zenodo.4099692) from which specific version can be cited if used.

If you use Mouse1, Rat1, Zebrafish1, Fruitfly1, or Worm1 in your research, please cite:

> H. Wang, J. L. Robinson, P. Kocabasÿ, J. Gustafsson, M. Anton, P.-E. Cholley, et al. Genome-scale metabolic network reconstruction of model animals as a platform for translational research. _PNAS_ 118, e2102344118 (2021). [doi.org/10.1073/pnas.2102344118](https://doi.org/10.1073/pnas.2102344118)



### Model Keywords

### Model keywords
**Utilisation:** predictive simulation, multi-omics integrative analysis, model template
**Field:** metabolic-network reconstruction
**Type of Model:** reconstruction, curated
Expand All @@ -34,38 +26,43 @@ If you use Mouse1, Rat1, Zebrafish1, Fruitfly1, or Worm1 in your research, pleas
**Metabolic System:** general metabolism
**Condition:** generic metabolism


### Model Overview

### Model overview
|Taxonomy | Template Model | Reactions | Metabolites| Genes |
| ------------- |:-------------:|:-------------:|:-------------:|:-----:|
|_Homo sapiens_ | HMR2, Recon3D, iHsa| {{nRXN}}| {{nMET}}| {{nGENE}}|


## Contributing

Contributions are always welcome! Read more about the project's philosophy in our [wiki](https://github.com/SysBioChalmers/Human-GEM/wiki) or have a look at the [Contributing guidelines](https://github.com/SysBioChalmers/Human-GEM/blob/main/.github/CONTRIBUTING.md) before starting.


## User Guide

## User guide
Detailed instructions on the installation and use of the Human-GEM model and repository can be found in the [Human-GEM user guide](https://sysbiochalmers.github.io/Human-GEM-guide/).

# Installation
## Required software
### Basic user
If you want to use the model for your own model simulations, you can use any software that accepts **SBML L3V1 FBCv3** formatted model files. This includes any of the following:

#### MATLAB-based
* [RAVEN Toolbox](https://github.com/SysBioChalmers/RAVEN) v2.10.3 or later (recommended, see [Installation instructions](https://github.com/SysBioChalmers/RAVEN/wiki/Installation#installation-instructions))
* [COBRA Toolbox](https://github.com/opencobra/cobratoolbox)

## Installation
#### Python-based
* [cobrapy](https://github.com/opencobra/cobrapy)

### Required Software
* A functional MATLAB installation (MATLAB 7.3 and higher).
* The [RAVEN toolbox](https://github.com/SysBioChalmers/RAVEN).
* The [COBRA toolbox](https://github.com/opencobra/cobratoolbox) (not necessary for most functionality).
Please see the installation instructions for each software package.

### Developer
#### MATLAB-based
If you want to contribute to the development of Human-GEM, or otherwise want to run any of the [provided](https://github.com/SysBioChalmers/Human-GEM/tree/main/code) MATLAB functions, then the following software is required:
* [RAVEN Toolbox](https://github.com/SysBioChalmers/RAVEN) v2.10.3 or later (recommended, see [Installation instructions](https://github.com/SysBioChalmers/RAVEN/wiki/Installation#installation-instructions))

### Dependencies - Recommended Software
* The libSBML MATLAB API (version [5.13.0](https://sourceforge.net/projects/sbml/files/libsbml/5.13.0/stable/MATLAB%20interface/) is recommended).
* [Gurobi Optimizer](http://www.gurobi.com/registration/download-reg) for any simulations.
#### Python-based
You can also contribution to the development of Human-GEM via python (e.g. cobrapy), even if you would not be able to run any of the model-specific MATLAB functions. To curate the model, you can still edit `Human-GEM.yml`, `genes.tsv`, `metabolites.tsv` and `reactions.tsv`, all located in the `model/` folder.

### Recommended solver
* When performing simulations with Human-GEM, you are encouraged to use [Gurobi Optimizer](https://www.gurobi.com/academia/academic-program-and-licenses/).

### Installation Instructions
## Installation instructions
* Clone the [main branch](https://github.com/SysBioChalmers/Human-GEM/tree/main) of this repository, or [download the latest release](https://github.com/SysBioChalmers/Human-GEM/releases/latest).
* Add the directory to your MATLAB path either by using the lines below or manually (instructions [here](https://se.mathworks.com/help/matlab/ref/addpath.html?requestedDomain=www.mathworks.com)).
```matlab
Expand All @@ -77,47 +74,35 @@ HumanGEMInstaller.install
HumanGEMInstaller.uninstall
```

## Model Files

The model is available as `.xml`, `.xlsx`, `.txt`, `.yml`, and `.mat` in the `model/` directory. Note that only the `.yml` version is available on branches other than `main` (e.g., `develop`), to facilitate tracking of model changes.
## Model files
The model is available as `.xml`, `.xlsx`, `.txt`, `.yml`, and `.mat` in the `model/` directory.

The model development is based on the `yml` file (to facilitate tracking of model changes), so that this is the only model format available on non-`main` branches (such as `develop`). See also the [location of annotation information](#reaction-metabolite-and-gene-annotations).

## Usage

#### Loading/saving the model

`Human-GEM.mat` (Recommended if on `main` branch)
#### Loading/saving the model in MATLAB
`Human-GEM.mat` (Recommended if on `main` branch):
* Load and save using the built-in MATLAB `load()` and `save()` functions.

`Human-GEM.yml` (Recommended if on `develop` or other branches)
* Load using the `importYaml.m` function (in `code/io/`)
* Save using the `exportYaml.m` function (in `code/io/`)

`Human-GEM.xml` (SBML format)
* Load using the `importModel.m` function (from [RAVEN Toolbox](https://github.com/SysBioChalmers/RAVEN))
* Save using the `exportModel.m` function (from [RAVEN Toolbox](https://github.com/SysBioChalmers/RAVEN))


## Reaction, Metabolite, and Gene Annotations

Additional annotation information and external identifiers for Human-GEM reactions, metabolites, and genes are provided as `tsv` files in the `model/` directory (`reactions.tsv`, `metabolites.tsv`, and `genes.tsv`, respectively).
`Human-GEM.yml` (Recommended if on `develop` or other branches):
* Load using the `readYAMLmodel.m` function (from [RAVEN Toolbox](https://github.com/SysBioChalmers/RAVEN)).
* Save using the `writeYAMLmodel.m` function (from [RAVEN Toolbox](https://github.com/SysBioChalmers/RAVEN)).

To import/export this annotation data to/from MATLAB, use the `importTsvFile` and `exportTsvFile` functions, respectively.
`Human-GEM.xml` (SBML format):
* Load using the `importModel.m` function (from [RAVEN Toolbox](https://github.com/SysBioChalmers/RAVEN)).
* Save using the `exportModel.m` function (from [RAVEN Toolbox](https://github.com/SysBioChalmers/RAVEN)).

## Reaction, metabolite, and gene annotations
By default, additional annotation information and external identifiers for Human-GEM reactions, metabolites, and genes are **not** kept in the `yml` file, but rather provided as `tsv` files in the `model/` directory (`reactions.tsv`, `metabolites.tsv`, and `genes.tsv`, respectively). The `annotateGEM` function can add those annotations in MATLAB, while direct import/export of this annotation data is done through the `importTsvFile` and `exportTsvFile` functions, respectively.

## Websites

- [Metabolic Atlas](https://metabolicatlas.org/) enables visualization and exploration of Human-GEM content.
- The [Human-GEM user guide](https://sysbiochalmers.github.io/Human-GEM-guide/) provides detailed instructions and examples for using the Human-GEM model and repository.


## Metabolic Maps

## Metabolic maps
A collection of manually curated 2D metabolic maps associated with Human-GEM are stored in the [Human-maps repository](https://github.com/SysBioChalmers/Human-maps). These maps can be downloaded from the repository or explored interactively using [Metabolic Atlas](https://metabolicatlas.org/explore/map-viewer/human1).


## Contributors

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
Expand Down Expand Up @@ -164,8 +149,6 @@ A collection of manually curated 2D metabolic maps associated with Human-GEM are
</tr>
</tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->
2 changes: 1 addition & 1 deletion code/DepMapGeneEss/PrepDepMapData.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
save('data/arrayDataDepMap.mat','arrayDataDepMap');

%Generate ftINIT prepData - only needs to be done once. Can take up to an hour to run
model = importYaml('../../model/Human-GEM.yml');
model = readYAMLmodel('../../model/Human-GEM.yml');
[model.grRules, skipped] = simplifyGrRules(model.grRules, true);%takes a few minutes to run
prepData = prepHumanModelForftINIT(model, true, '../../data/metabolicTasks/metabolicTasks_Essential.txt', '../../model/reactions.tsv');
save('data/prepDataGeneSymbols.mat', 'prepData')
Loading
Loading