diff --git a/README.md b/README.md index eece696..43e26af 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # Iris: Implement for Refining Insertion Sequences -Version 1.0.4 +Version 1.0.5 A module which corrects the sequences of structural variant calls (currently only insertions). It uses FalconSense to obtain consensus sequences of the reads surrounding each variant and aligns these sequences back to the reference at the insertion site, resulting in an insertion which takes into account the aggregate information of all supporting reads. diff --git a/iris.jar b/iris.jar index fcd4c2c..687b7fa 100644 Binary files a/iris.jar and b/iris.jar differ diff --git a/src/IrisSettings.java b/src/IrisSettings.java index 9e596e4..8e03d80 100644 --- a/src/IrisSettings.java +++ b/src/IrisSettings.java @@ -1,4 +1,5 @@ import java.io.File; +import java.nio.file.Path; import java.nio.file.Paths; /* @@ -64,7 +65,7 @@ static String getIrisWorkingDir() static void usage() { System.out.println(); - System.out.println("Iris version 1.0.4"); + System.out.println("Iris version 1.0.5"); System.out.println("Usage: java Iris [args]"); System.out.println(" Example: java Iris genome_in=genome.fa vcf_in=sniffles.vcf "); System.out.println(" reads_in=reads.bam vcf_out=refined.vcf"); @@ -232,7 +233,13 @@ else if(args[i].equalsIgnoreCase("-h") || args[i].toLowerCase().endsWith("-help" MAX_LENGTH_CHANGE = Double.parseDouble(val); break; case "out_dir": - OUT_DIR = Paths.get("").toAbsolutePath().toString() + "/" + val; + + OUT_DIR = val; + if(!OUT_DIR.startsWith("/")) + { + Path currentRelativePath = Paths.get(""); + OUT_DIR = currentRelativePath.toAbsolutePath().toString() + "/" + OUT_DIR; + } File f = new File(OUT_DIR); f.mkdir(); default: