Skip to content

Commit

Permalink
Fixed bug where metrics files would not be found if a relative path w…
Browse files Browse the repository at this point in the history
…as used as output dir
  • Loading branch information
staliv committed Mar 1, 2012
1 parent bfb9291 commit 141df25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion bin/illumina2bam_demultiplex_wrapper
Expand Up @@ -575,7 +575,8 @@ function copyFilesAndDirs(list, fromDir, toDir, log) {
if (name.indexOf("[temp]") > -1) {
fromPath = path.normalize(name.replace("[temp]", argv.tempDirectory));
} else {
fromPath = path.normalize(fromDir + "/" + name);
fromDir = (fromDir === "") ? "" : fromDir + "/";
fromPath = path.normalize(fromDir + name);
}
var toPath = path.normalize(toDir + "/" + list[name]);
if (path.existsSync(fromPath)) {
Expand Down
4 changes: 2 additions & 2 deletions lib/initSettings.js
Expand Up @@ -17,9 +17,9 @@ var jarsDirectory = {
},
locate: function() {
var self = this;
var rootPath = path.normalize("./../");
var rootPath = path.normalize("./../../");
var foundDir = self.checkDirectory(rootPath);
return foundDir;
return path.resolve(foundDir);
},
checkDirectory: function(dirPath) {
var self = this;
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name" : "illumina2bam-tools",
"version" : "0.1.0",
"version" : "0.1.2",
"description" : "Tools for working with the illumina2bam fork located at https://github.com/staliv/illumina2bam. The fork is modified for the Lund oncology research department workflow.",
"main" : "./index.js",
"dependencies" : {
Expand All @@ -27,4 +27,4 @@
"engine" : {
"node" : ">=0.6.8"
}
}
}

0 comments on commit 141df25

Please sign in to comment.