-
Notifications
You must be signed in to change notification settings - Fork 589
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
Add new configuration entry for plugins #4611
Add new configuration entry for plugins #4611
Conversation
610e00d
to
891230c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@magicDGS One question for you, it seems like it would be better to use the existing method in a loop instead of factoring out another one, but maybe I am missing some detail. Looks good to me otherwise.
for ( final String codecPackage : config.annotation_packages() ) { | ||
finder.find(codecPackage, GenotypeAnnotation.class); | ||
} | ||
return finder.getConcreteClasses().stream().map(c -> (GenotypeAnnotation) ClassUtils.makeInstanceOf(c)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as above.
final GATKConfig config = ConfigFactory.getInstance().getGATKConfig(); | ||
|
||
final ClassFinder finder = new ClassFinder(); | ||
for ( final String codecPackage : config.annotation_packages() ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do this instead of calling ClassUtils.makeInstanceOfSubclasses
on each package and merging the results?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is all going to be removed soon by #4674. It might be best to wait for that, since it will reduce what this PR needs to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. Ok, lets wait for that then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How close is that PR to be accepted? I can divide this one into the ReadFilter
config entry and wait for the annotator to be accepted to include the entry (or include it directly in #4674). What do you prefer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing because I've taken this over as #5573 |
Includes:
In addition, it changes the behavior of
VariantAnnotatorEngine
to use the annotation packages from the configuration, and mimic what the plugin is doing. This closes #2155