Skip to content

Commit

Permalink
Support absolute paths for out_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mkirsche committed Jul 14, 2021
1 parent 232a629 commit 3264bec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Binary file modified iris.jar
Binary file not shown.
11 changes: 9 additions & 2 deletions src/IrisSettings.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;

/*
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3264bec

Please sign in to comment.