Skip to content

Commit

Permalink
Merge pull request #86 from wtsi-npg/devel
Browse files Browse the repository at this point in the history
Release 1.19
  • Loading branch information
jenniferliddle committed Feb 25, 2016
2 parents 54d31c1 + 6638a24 commit d66b77a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
release 1.19
- cope with unknown sort order in header

release 1.18
- new command line option CHANGE_RG_NAME default false
- NB this is a change to previous behaviour, where it was always true
Expand Down
2 changes: 1 addition & 1 deletion nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ file.reference.jackson-core-2.0.0.jar=lib/jackson/jackson-core-2.0.0.jar
file.reference.jackson-databind-2.0.0.jar=lib/jackson/jackson-databind-2.0.0.jar
file.reference.picard.jar=lib/picard/picard-1.96.jar
file.reference.sam.jar=lib/picard/sam-1.96.jar
illumina2bam.version=1.18
illumina2bam.version=1.19
includes=**
jar.compress=false
javac.classpath=\
Expand Down
11 changes: 11 additions & 0 deletions src/uk/ac/sanger/npg/picard/BamIndexDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@ public void generateOutputFile(SAMFileHeader header) {
+ OUTPUT_FORMAT;
final SAMFileHeader perBarcodeOutputHeader = outputHeader.clone();
perBarcodeOutputHeader.setReadGroups(readGroupList);
try {
perBarcodeOutputHeader.getSortOrder();
} catch(IllegalArgumentException e) {
perBarcodeOutputHeader.setSortOrder(SAMFileHeader.SortOrder.unsorted);
}
final SAMFileWriter outPerBarcode = new SAMFileWriterFactory().makeSAMOrBAMWriter(perBarcodeOutputHeader, true, new File(barcodeBamOutputName));
outputList.put(barcode, outPerBarcode);
}
Expand All @@ -363,6 +368,12 @@ public void generateOutputFile(SAMFileHeader header) {
if (OUTPUT != null) {
log.info("Open output file with header: " + OUTPUT.getName());
outputHeader.setReadGroups(fullReadGroupList);
try {
outputHeader.getSortOrder();
} catch(IllegalArgumentException e) {
outputHeader.setSortOrder(SAMFileHeader.SortOrder.unsorted);
}

this.out = new SAMFileWriterFactory().makeSAMOrBAMWriter(outputHeader, true, OUTPUT);
}

Expand Down
2 changes: 1 addition & 1 deletion src/uk/ac/sanger/npg/picard/PicardCommandLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
public abstract class PicardCommandLine extends CommandLineProgram {

public static final String version = "1.17";
public static final String version = "1.19";

/**
* Generate Program Record for this program itself
Expand Down

0 comments on commit d66b77a

Please sign in to comment.