The getReadGroup() method in SAMRecord is non-trivial, and there were instances in the code where it was being used carelessly. This PR addresses this by calling the method once and caching the value (where appropriate)
How Has This Been Tested?
Existing tests pass, and regression tests are green
Are WDL Updates Required?
nope
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
Description
The
getReadGroup
() method inSAMRecord
is non-trivial, and there were instances in the code where it was being used carelessly. This PR addresses this by calling the method once and caching the value (where appropriate)How Has This Been Tested?
Existing tests pass, and regression tests are green
Are WDL Updates Required?
nope
Checklist: