Clean unnecessary attributes from the read

this gives on average 40% file size reduction.
This commit is contained in:
Mauricio Carneiro 2011-11-09 12:37:14 -05:00
parent 9427ada498
commit f9530e0768
1 changed files with 6 additions and 0 deletions

View File

@ -241,4 +241,10 @@ public class GATKSAMRecord extends BAMRecord {
public boolean isEmpty() {
return this.getReadLength() == 0;
}
public void simplify () {
GATKSAMReadGroupRecord rg = getReadGroup();
this.clearAttributes();
setReadGroup(rg);
}
}