Merge pull request #689 from broadinstitute/eb_fix_samrecord_test_constructor

The copy constructor for a GATKSAMRecord (used for testing only) should ...
This commit is contained in:
Eric Banks 2014-07-23 23:03:30 -04:00
commit 43bd6b4436
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ public class GATKSAMRecord extends BAMRecord implements Cloneable {
* @param read
*/
public GATKSAMRecord(final SAMRecord read) {
super(read.getHeader(), read.getMateReferenceIndex(),
super(read.getHeader(),
read.getReferenceIndex(),
read.getAlignmentStart(),
read.getReadName() != null ? (short)read.getReadNameLength() : 0,
(short)read.getMappingQuality(),