Skip to content

Commit

Permalink
clean up commented code and update file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmonlong committed Aug 20, 2024
1 parent 01d1c8e commit f4fd676
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"fileTypeToExtensions": {
"graph": ".xg,.vg,.hg,.gbz,.pg,.db",
"haplotype": ".gbwt,.gbz",
"read": ".gam"
"read": ".gam,gaf.gz"
},

"MAXUPLOADSIZE": 5242880,
Expand Down
2 changes: 1 addition & 1 deletion src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"fileTypeToExtensions": {
"graph": ".xg,.vg,.hg,.gbz,.pg,.db",
"haplotype": ".gbwt,.gbz",
"read": ".gam"
"read": ".gam,.gaf.gz"
},

"MAXUPLOADSIZE": 5242880,
Expand Down
3 changes: 0 additions & 3 deletions src/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1206,9 +1206,6 @@ function processGamFile(req, res, next, gamFile, gamFileNumber) {
vgViewParams.push("-");
// vg convert needs the graph to convert GAF to GAM
const graphFile = getFirstFileOfType(req.body.tracks, fileTypes.GRAPH);
// let dataPath = pickDataPath(req.body.dataPath);
// console.log(`dataPath = ${dataPath}`);
// vgConvertParams.push("-F", gamFile, `${dataPath}${graphFile}`);
vgConvertParams.push("-F", gamFile, graphFile);
}
if (gamFile.endsWith(".gam")) {
Expand Down

0 comments on commit f4fd676

Please sign in to comment.