Repository navigation
Re-enable GenomeFeatureBuilderTest and fix LDKNNi imputation test - #53
Merged
Merged
Conversation
GenomeFeatureBuilderTest and fix LDKNNi imputation test
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #53 +/- ##
=============================================
+ Coverage 25.39% 25.86% +0.47%
- Complexity 4918 5042 +124
=============================================
Files 610 610
Lines 73053 73056 +3
Branches 12590 12591 +1
=============================================
+ Hits 18550 18896 +346
+ Misses 52626 52272 -354
- Partials 1877 1888 +11 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
zrm22
reviewed
Oct 22, 2026
zrm22
approved these changes
Oct 22, 2026
pjbradbury
approved these changes
Oct 22, 2026
aberthel
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes and re-enables two test classes (
GenomeFeatureBuilderTestandLDKNNiImputationPluginTest) that were excluded from the maintesttask.For
GenomeFeatureBuilderTest(#28),testMissingFieldsexpectedbuild()to throw an exception whentype,chromosome,start, orstopwere missing. However,GenomeFeatureBuilderonly requiresidand treats all other fields as optional. The test now checks that missingidthrows an exception and that the other fields are optional and default to"NA".For
LDKNNiImputationPluginTest(#29), there were two issues:LDKNNiImputationPlugin.getHighLDMapwrote to a non-thread-safeArrayListMultimapfrom a parallel stream, causing small random differences between runs. Each parallel task now writes to its own slot in an array, and the map is built afterward on a single thread.LDKNNiImputationPluginchanged from unlimited (-1) to 10 Mb, which raised the error rate in the test above its 3.5% limit. Setting.maxDistance(-1)in the test restores the original behavior it was written for, and raising the RIL error rate check from5e-4to6e-4accounts for the deterministic 5.09e-4 error rate.Closes #28, closes #29.
LDKNNiImputationPlugin.getHighLDMapwhen collecting high-LD sites in parallel (LDKNNiImputationPluginTest: imputation error rate 7.8% exceeds 3.5% threshold #29)LDKNNiImputationPluginTestto use an unlimited LD search window (maxDistance(-1)) and re-enabled it inbuild.gradle.kts(LDKNNiImputationPluginTest: imputation error rate 7.8% exceeds 3.5% threshold #29)GenomeFeatureBuilderTest.testMissingFieldsto matchGenomeFeatureBuildervalidation rules and re-enabled it inbuild.gradle.kts(GenomeFeatureBuilderTest.testMissingFields: builder no longer validates type/chromosome #28)Type of change
What type of changes does your code introduce? Put an
xin boxes that apply.CHANGE(fix or feature that would cause existing functionality to not work as expected)FEATURE(non-breaking change which adds functionality)BUGFIX(non-breaking change which fixes an issue)ENHANCEMENT(non-breaking change which improves existing functionality)NONE(if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)Checklist:
develop(use the hotfix template if this targetsmain)versionvariable inbuild.gradle.kts