Skip to content

Commit

Permalink
fix: run all Hart et al. 2015 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Oct 21, 2024
1 parent e5342bd commit e56fbe8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gene-essentiality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
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)));" | awk 'NR>9 && !/^\.+/') &&
disp(cell2table(transpose(output(:,2:end)),"VariableNames",output(:,1)));" &&
PARSED_RESULTS="${TEST_RESULTS//'%'/'%25'}" &&
PARSED_RESULTS="${PARSED_RESULTS//$'\n'/'<br>'}" &&
PARSED_RESULTS="${PARSED_RESULTS//$'\r'/'<br>'}" &&
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/macaw-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,16 @@ jobs:
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
git stash pop
- name: Auto-commit results
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion code/test/estimateEssentialGenes.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
params = {};
INIT_output = {};

for i = 1%:length(arrayData.tissues)
for i = 1:length(arrayData.tissues)
disp(['Tissue ', num2str(i), ' out of ', num2str(length(arrayData.tissues)),': ', arrayData.tissues{i}])

% First try to run tINIT with shorter time limit. If it fails, then
Expand Down

0 comments on commit e56fbe8

Please sign in to comment.