Skip to content

Commit

Permalink
fix: gene-essentiality.yml output format
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Oct 20, 2024
1 parent 88fbdfc commit 0ef23be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gene-essentiality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
ihuman = readYAMLmodel('model/Human-GEM.yml');
taskStruct = parseTaskList('data/metabolicTasks/metabolicTasks_Essential.txt');
[~, eGenes] = evalc('estimateEssentialGenes(ihuman, ''Hart2015_RNAseq.txt'', taskStruct);');
output = evaluateHart2015Essentiality(eGenes);
output = transpose(evaluateHart2015Essentiality(eGenes));
fid = fopen('data/testResults/gene-essential.csv','w');
fprintf(fid,[repmat('%s,',1,13) '%s\n'],transpose(output{1,:}));
fprintf(fid,['%s,%d,%d,%d,%d' repmat(',%.4g',1,9) '\n'],transpose(output{2:end,:}));
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(output);" | awk 'NR>9 && !/^\.+/') &&
disp(cell2table(transpose(output(:,2:end)),"VariableNames",output(:,1)));" | awk 'NR>9 && !/^\.+/') &&
PARSED_RESULTS="${TEST_RESULTS//'%'/'%25'}" &&
PARSED_RESULTS="${PARSED_RESULTS//$'\n'/'<br>'}" &&
PARSED_RESULTS="${PARSED_RESULTS//$'\r'/'<br>'}" &&
Expand Down

0 comments on commit 0ef23be

Please sign in to comment.