If the annotation engine has not been supplied, don't try to annotate anything.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3081 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
8048b709a0
commit
391e5843e4
|
|
@ -223,9 +223,10 @@ public class UnifiedGenotyperEngine {
|
|||
call = gcm.get().callLocus(tracker, ref, rawContext.getLocation(), stratifiedContexts, priors);
|
||||
|
||||
// annotate the call, if possible
|
||||
if ( call != null && call.vc != null ) {
|
||||
if ( call != null && call.vc != null && annotationEngine != null ) {
|
||||
// first off, we want to use the *unfiltered* context for the annotations
|
||||
stratifiedContexts = StratifiedAlignmentContext.splitContextBySample(rawContext.getBasePileup());
|
||||
|
||||
call.vc = annotationEngine.annotateContext(tracker, refContext, stratifiedContexts, call.vc);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue