Clean unnecessary attributes from the read
this gives on average 40% file size reduction.
This commit is contained in:
parent
9427ada498
commit
f9530e0768
|
|
@ -241,4 +241,10 @@ public class GATKSAMRecord extends BAMRecord {
|
||||||
public boolean isEmpty() {
|
public boolean isEmpty() {
|
||||||
return this.getReadLength() == 0;
|
return this.getReadLength() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void simplify () {
|
||||||
|
GATKSAMReadGroupRecord rg = getReadGroup();
|
||||||
|
this.clearAttributes();
|
||||||
|
setReadGroup(rg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue