Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite haplotype construction methods in PDHapComputationEngine #8367

Merged
merged 3 commits into from
Jul 27, 2023

Conversation

davidbenjamin
Copy link
Contributor

@davidbenjamin davidbenjamin commented Jun 15, 2023

@jamesemery Here's another fun one, again no change in output but significant refactoring of constructHaplotypeFromVariants and createNewPDHaplotypeFromEvents.

@gatk-bot
Copy link

gatk-bot commented Jun 15, 2023

Github actions tests reported job failures from actions build 5275320578
Failures in the following jobs:

Test Type JDK Job ID Logs
unit 17.0.6+10 5275320578.12 logs
unit 17.0.6+10 5275320578.1 logs

Copy link
Collaborator

@jamesemery jamesemery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to keep staring at this.... you should take a look at the unit tests for this class and consider if its worth adding some more test cases

@davidbenjamin davidbenjamin force-pushed the db_dragen_construct_haplotype_from_events branch from f215fa1 to efa50ce Compare June 26, 2023 18:45
@davidbenjamin davidbenjamin force-pushed the db_dragen_construct_haplotype_from_events branch from efa50ce to fdd365b Compare June 27, 2023 20:48
@davidbenjamin
Copy link
Contributor Author

Back to you, @jamesemery

Copy link
Collaborator

@jamesemery jamesemery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, very minor comments but otherwise i see no reason to keep blocking this

// NOTE: we set this AFTER generating the event maps because hte event map code above is being generated from the ref hap so this offset will cause out of bounds errors
outHaplotype.setAlignmentStartHapwrtRef(refHap.getAlignmentStartHapwrtRef()); //TODO better logic here
result.setAlignmentStartHapwrtRef(refHap.getAlignmentStartHapwrtRef()); //TODO better logic here
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments above

@davidbenjamin davidbenjamin merged commit 5bd612b into master Jul 27, 2023
20 checks passed
@davidbenjamin davidbenjamin deleted the db_dragen_construct_haplotype_from_events branch July 27, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants