Skip to content

Commit

Permalink
Fix GARD results function filename to work with job and hyphyJob. (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenshank authored Oct 15, 2021
1 parent 13adf1c commit e8ceda4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/gard/gard.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var gard = function(socket, stream, params) {
self.fn = __dirname + "/output/" + self.id;
self.output_dir = path.dirname(self.fn);
self.status_fn = self.fn + ".status";
self.json_fn = self.fn + ".GARD.json";
self.results_fn = self.fn + ".GARD.json";
self.progress_fn = self.fn + ".GARD.progress";
self.tree_fn = self.fn + ".tre";

Expand All @@ -65,7 +65,7 @@ var gard = function(socket, stream, params) {
",pfn=" +
self.progress_fn +
",rfn=" +
self.json_fn +
self.results_fn +
",treemode=" +
self.treemode +
",genetic_code=" +
Expand Down Expand Up @@ -124,7 +124,7 @@ gard.prototype.onComplete = function() {

var files = {
finalout: self.finalout_results_fn,
json: self.json_fn
json: self.results_fn
};

logger.info("gard results files to translate : " + JSON.stringify(files));
Expand All @@ -134,7 +134,7 @@ gard.prototype.onComplete = function() {
// Error reading results file
self.onError("unable to read results file. " + err);
} else {
fs.readFile(self.json_fn, "utf8", function(err, data) {
fs.readFile(self.results_fn, "utf8", function(err, data) {

if (err || !data.length) {
// Error reading results file
Expand Down

0 comments on commit e8ceda4

Please sign in to comment.