Skip to content

Commit

Permalink
fix: model path and allow 2 workflow comments
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Oct 19, 2024
1 parent 7f8c8ae commit 497bd7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/gene-essentiality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Run gene essentiality
id: essentiality
run: |
TEST_RESULTS=$(/usr/local/bin/matlab -nodisplay -nosplash -nodesktop -r "addpath(genpath('.')); ihuman = readYAMLmodel('Human-GEM.yml'); taskStruct = parseTaskList('data/metabolicTasks/metabolicTasks_Essential.txt'); eGenes = estimateEssentialGenes(ihuman, 'Hart2015_RNAseq.txt', taskStruct);output = transpose(evaluateHart2015Essentiality(eGenes)); fid = fopen('data/testResults/gene-essential.csv','w'); fprintf(fid,[repmat('%s,',1,13) '%s\n'],output{:,1}); fprintf(fid,['%s,%d,%d,%d,%d' repmat(',%.4g',1,9) '\n'],output{:,2:end}); fclose(fid); disp(evaluateHart2015Essentiality(eGenes));" | awk 'NR>9 && !/^\.+/')
TEST_RESULTS=$(/usr/local/bin/matlab -nodisplay -nosplash -nodesktop -r "addpath(genpath('.')); ihuman = readYAMLmodel('model/Human-GEM.yml'); taskStruct = parseTaskList('data/metabolicTasks/metabolicTasks_Essential.txt'); eGenes = estimateEssentialGenes(ihuman, 'Hart2015_RNAseq.txt', taskStruct);output = transpose(evaluateHart2015Essentiality(eGenes)); fid = fopen('data/testResults/gene-essential.csv','w'); fprintf(fid,[repmat('%s,',1,13) '%s\n'],output{:,1}); fprintf(fid,['%s,%d,%d,%d,%d' repmat(',%.4g',1,9) '\n'],output{:,2:end}); fclose(fid); disp(evaluateHart2015Essentiality(eGenes));" | awk 'NR>9 && !/^\.+/')
PARSED_RESULTS="${TEST_RESULTS//'%'/'%25'}"
PARSED_RESULTS="${PARSED_RESULTS//$'\n'/'<br>'}"
PARSED_RESULTS="${PARSED_RESULTS//$'\r'/'<br>'}"
Expand All @@ -42,6 +42,7 @@ jobs:
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}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macaw-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
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}}
Expand Down

0 comments on commit 497bd7b

Please sign in to comment.