Fixing GATKSAMRecord bug
when constructing a GATKSAMRecord from scratch, we should set "mRestOfBinaryData" to null so the BAMRecord doesn't try to retrieve missing information from the non-existent bam file.
This commit is contained in:
parent
8e519e7d5d
commit
e1b4c3968f
|
|
@ -24,7 +24,10 @@
|
|||
|
||||
package org.broadinstitute.sting.utils.sam;
|
||||
|
||||
import net.sf.samtools.*;
|
||||
import net.sf.samtools.BAMRecord;
|
||||
import net.sf.samtools.SAMFileHeader;
|
||||
import net.sf.samtools.SAMReadGroupRecord;
|
||||
import net.sf.samtools.SAMRecord;
|
||||
import org.broadinstitute.sting.utils.NGSPlatform;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
|
@ -83,7 +86,7 @@ public class GATKSAMRecord extends BAMRecord {
|
|||
read.getMateReferenceIndex(),
|
||||
read.getMateAlignmentStart(),
|
||||
read.getInferredInsertSize(),
|
||||
new byte[]{});
|
||||
null);
|
||||
super.clearAttributes();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue