patch for gatk genstrip and BAM files missing a LB library in the SAM Header. htsjdk is hacked to use the Sample name instead of the Library This should fix the following issue: http://gatkforums.broadinstitute.org/wdl/discussion/6339/
SVPreprocess.qError: Cannot determine library identifier for read xxxx
clone and checkout the current tag for svtoolkit (currently 2.1.0)
$ git clone "https://github.com/samtools/htsjdk"
$ git checkout tags/2.1.0
$ cd htsjdk
apply the patch
$ patch -p1 < lb.patch
patching file src/java/htsjdk/samtools/SAMReadGroupRecord.java
compile
ant
replace the old library with the new one:
Q: The old library was named htsjdk-2.1.0.gs. What is that "gs" ? is there any difference with the official htsjdk 2.1.0 release ?
mv dist/htsjdk-2.1.0.jar /svtoolkit/lib/gatk/htsjdk-2.1.0.gs.jar
It seems to work so far, but it seems very slow ?...
INFO 22:10:59,230 18-Jul-2016 ProgressMeter - Starting 0.0 20.0 m 1984.4 w 100.0% 20.0 m 0.0 s