Skip to content

Conversation

@holmeso
Copy link
Contributor

@holmeso holmeso commented Apr 24, 2024

Description

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:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

… so sparingly

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 vbalue
(where appropririate)
@delocalizer delocalizer self-assigned this Apr 24, 2024
@holmeso holmeso merged commit b59be0f into master Apr 26, 2024
@holmeso holmeso deleted the getReadGroup branch April 26, 2024 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants