The copy constructor for a GATKSAMRecord (used for testing only) should use the actual read's contig index, not its mate's.
This commit is contained in:
parent
0798a4b768
commit
84af1fc75f
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue