Fixed SortSam bug, for .done file
The *.bai.done file for the .bai file was written in the run directory instead of in the specified output directory. Changing getName() to getAbsolutePath() fixes this. Signed-off-by: Joel Thibault <thibault@broadinstitute.org>
This commit is contained in:
parent
b543bddbb7
commit
e9b9e2318c
|
|
@ -50,7 +50,7 @@ class SortSam extends org.broadinstitute.sting.queue.function.JavaCommandLineFun
|
|||
override def freezeFieldValues() {
|
||||
super.freezeFieldValues()
|
||||
if (outputIndex == null && output != null)
|
||||
outputIndex = new File(output.getName.stripSuffix(".bam") + ".bai")
|
||||
outputIndex = new File(output.getAbsolutePath.stripSuffix(".bam") + ".bai")
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue