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

Deleted some unused genotyping code #6354

Merged
merged 7 commits into from
Jan 9, 2020
Merged

Conversation

davidbenjamin
Copy link
Contributor

@lbergelson This stuff is all dead code. Would you care to review?

@jamesemery
Copy link
Collaborator

@vruano You should take a look and see if any of these chagnes are going to conflict with your HMM changes. I know you changed many of those classes in your branch.

Copy link
Member

@lbergelson lbergelson left a comment

Choose a reason for hiding this comment

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

@davidbenjamin I saw a few things that could use additional cleanup. Seems sane though.

@@ -389,15 +382,15 @@ else if (matchingStart.size() == 1) {
* Creates a UnifiedArgumentCollection with appropriate values filled in from the arguments in this walker
Copy link
Member

Choose a reason for hiding this comment

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

This comment still talks about UnifiedArgumentCollection

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@@ -10,15 +10,15 @@
* used only by the HaplotypeCaller for its isActive() determination. Should not be used for
* any other purpose!
*/
public final class MinimalGenotypingEngine extends GenotypingEngine<UnifiedArgumentCollection> {
public final class MinimalGenotypingEngine extends GenotypingEngine<StandardCallerArgumentCollection> {

/**
* Creates a new unified genotyping given the UG configuration parameters and the targeted set of samples
Copy link
Member

Choose a reason for hiding this comment

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

all these comments talk about the UG configuration which is confusing and outdated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@@ -307,19 +307,18 @@ private void initializeSamples() {

private void initializeActiveRegionEvaluationGenotyperEngine() {
// create a UAC but with the exactCallsLog = null, so we only output the log for the HC caller itself, if requested
Copy link
Member

Choose a reason for hiding this comment

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

UAC

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@@ -495,7 +494,7 @@ public ActivityProfileState isActive( final AlignmentContext context, final Refe
// TODO: now that old qual is gone, do we still need this?
Copy link
Member

Choose a reason for hiding this comment

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

Is this todo still relevant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PR #6343 addressed it, so the TODO will be gone after rebasing.

final UnifiedArgumentCollection uac = new UnifiedArgumentCollection();
uac.genotypeArgs = new GenotypeCalculationArgumentCollection();
final StandardCallerArgumentCollection standardArgs = new StandardCallerArgumentCollection();
standardArgs.genotypeArgs = new GenotypeCalculationArgumentCollection();
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this needs to be set here anymore since it was just constructed with the same thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

uac.genotypeArgs = new GenotypeCalculationArgumentCollection(genotypeArgs);
return new MinimalGenotypingEngine(uac, SAMPLES);
final StandardCallerArgumentCollection standardArgs = new StandardCallerArgumentCollection();
standardArgs.genotypeArgs = new GenotypeCalculationArgumentCollection(genotypeArgs);
Copy link
Member

Choose a reason for hiding this comment

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

likewise

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@lbergelson
Copy link
Member

Woops, messed up assigning people to this pr. Sorry @davidangb

@davidbenjamin
Copy link
Contributor Author

@lbergelson back to you

Copy link
Member

@lbergelson lbergelson left a comment

Choose a reason for hiding this comment

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

👍

@davidbenjamin davidbenjamin merged commit 6d0eaf9 into master Jan 9, 2020
@davidbenjamin davidbenjamin deleted the db_unused_parameter branch January 9, 2020 17:16
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.

4 participants