Repository navigation
Conversation
610e00d to
891230c
Compare
lbergelson
left a comment
There was a problem hiding this comment.
@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)) |
| 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.
Why do this instead of calling ClassUtils.makeInstanceOfSubclasses on each package and merging the results?
There was a problem hiding this comment.
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.
Oh. Ok, lets wait for that then.
There was a problem hiding this comment.
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?
|
Closing because I've taken this over as #5573 |
Includes:
In addition, it changes the behavior of
VariantAnnotatorEngineto use the annotation packages from the configuration, and mimic what the plugin is doing. This closes #2155