Fix to allow haplotype caller to call indels after UG engine entry points were unified. Adding Haplotype Caller integration test

This commit is contained in:
Ryan Poplin 2011-12-13 17:19:40 -05:00
parent 7a386b45a5
commit 7fa1ab1bae
1 changed files with 4 additions and 1 deletions

View File

@ -371,8 +371,11 @@ public class UnifiedGenotyperEngine {
builder.log10PError(phredScaledConfidence/-10.0);
if ( ! passesCallThreshold(phredScaledConfidence) )
builder.filters(filter);
if ( !limitedContext )
if ( limitedContext ) {
builder.referenceBaseForIndel(vc.getReferenceBaseForIndel());
} else {
builder.referenceBaseForIndel(refContext.getBase());
}
// create the genotypes
GenotypesContext genotypes = assignGenotypes(vc, altAllelesToUse);