First step towards indel qualities in RR
Let the BI's and BD's pass through the reduce reads machinery
This commit is contained in:
parent
e68038c5d8
commit
7d12429917
|
|
@ -337,17 +337,14 @@ public class GATKSAMRecord extends BAMRecord {
|
||||||
*/
|
*/
|
||||||
public GATKSAMRecord simplify () {
|
public GATKSAMRecord simplify () {
|
||||||
GATKSAMReadGroupRecord rg = getReadGroup(); // save the read group information
|
GATKSAMReadGroupRecord rg = getReadGroup(); // save the read group information
|
||||||
byte [] insertionQuals = getBaseInsertionQualities(); // save the insertion quality score
|
byte[] insQuals = (this.getAttribute(BQSR_BASE_INSERTION_QUALITIES) == null) ? null : getBaseInsertionQualities();
|
||||||
byte [] deletionQualities = getBaseDeletionQualities(); // save the deletion quality score
|
byte[] delQuals = (this.getAttribute(BQSR_BASE_DELETION_QUALITIES) == null) ? null : getBaseDeletionQualities();
|
||||||
|
|
||||||
this.clearAttributes(); // clear all attributes from the read
|
this.clearAttributes(); // clear all attributes from the read
|
||||||
|
|
||||||
this.setReadGroup(rg); // restore read group
|
this.setReadGroup(rg); // restore read group
|
||||||
if (insertionQuals != null)
|
if (insQuals != null)
|
||||||
this.setBaseQualities(insertionQuals, EventType.BASE_INSERTION); // restore base insertion if we had any
|
this.setBaseQualities(insQuals, EventType.BASE_INSERTION); // restore base insertion if we had any
|
||||||
if (deletionQualities != null)
|
if (delQuals != null)
|
||||||
this.setBaseQualities(deletionQualities, EventType.BASE_DELETION); // restore base deletion if we had any
|
this.setBaseQualities(delQuals, EventType.BASE_DELETION); // restore base deletion if we had any
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue