Skip to content

Commit

Permalink
Bug fix for split sam validation
Browse files Browse the repository at this point in the history
  • Loading branch information
njdbickhart committed Jun 1, 2015
1 parent 8cf4214 commit 17f8512
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/workers/BufferedSetReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ private SetMap<BufferedInitialSet> associateSplits(HashMap<String, ArrayList<anc
this.hardUnbal = 0;

try(SAMFileReader samReader = new SAMFileReader(file.getSplitsam().toFile())){
samReader.setValidationStringency(SAMFileReader.ValidationStringency.SILENT);
SAMRecordIterator iterator = samReader.iterator();
while(iterator.hasNext()){
SAMRecord line = iterator.next();
Expand Down
12 changes: 8 additions & 4 deletions src/workers/OutputEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class OutputEvents {
protected Path supportfile;
protected final boolean debug;

private static final Logger log = Logger.getLogger(OutputEvents.class.getName());

public OutputEvents(String outfile, boolean debug){
//this.sets = (ArrayList<finalSets>) sets;
this.outfile = Paths.get(outfile);
Expand All @@ -37,14 +39,16 @@ public OutputEvents(String outfile, boolean debug){
try {
this.outfile.toFile().createNewFile();
} catch (IOException ex) {
Logger.getLogger(OutputEvents.class.getName()).log(Level.SEVERE, null, ex);
log.log(Level.SEVERE, "[OUTPUTEVENTS] Could not create new output file: " + outfile, ex);
System.exit(-1);
}
else{
this.outfile.toFile().delete();
try {
this.outfile.toFile().createNewFile();
} catch (IOException ex) {
Logger.getLogger(OutputEvents.class.getName()).log(Level.SEVERE, null, ex);
log.log(Level.SEVERE, "[OUTPUTEVENTS] Could not overwrite existing output file: " + outfile, ex);
System.exit(-1);
}
}
}
Expand Down Expand Up @@ -72,7 +76,7 @@ public void WriteOut (){
//output.newLine();
}
} catch (IOException ex) {
Logger.getLogger(OutputEvents.class.getName()).log(Level.SEVERE, null, ex);
log.log(Level.SEVERE, "[OUTPUTEVENTS] Could not write to outfile: " + this.outfile.toString(), ex);
}

if(debug){
Expand All @@ -83,7 +87,7 @@ public void WriteOut (){
support.newLine();
}
}catch(IOException ex){
Logger.getLogger(OutputEvents.class.getName()).log(Level.SEVERE, null, ex);
log.log(Level.SEVERE, "[OUTPUTEVENTS] Could not write to supportfile: " + this.supportfile.toString(), ex);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/workers/RPSRmain.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author bickhart
*/
public class RPSRmain {
private static final String version = "0.0.13";
private static final String version = "0.0.14";
private static final Logger log = Logger.getLogger(RPSRmain.class.getName());
/**
* @param args the command line arguments
Expand Down
Binary file modified store/RAPTR-SV.jar
Binary file not shown.

0 comments on commit 17f8512

Please sign in to comment.