Fix in UG for trying to call indels at IUPAC code bases when in EMIT_ALL_SITES mode
This commit is contained in:
parent
9ddbfdcb9f
commit
170d1ff7b6
|
|
@ -485,6 +485,9 @@ public class UnifiedGenotyperEngine {
|
|||
|
||||
Map<String, AlignmentContext> stratifiedContexts = null;
|
||||
|
||||
if ( !BaseUtils.isRegularBase( refContext.getBase() ) )
|
||||
return null;
|
||||
|
||||
if ( model == GenotypeLikelihoodsCalculationModel.Model.INDEL ) {
|
||||
|
||||
if (UAC.GenotypingMode == GenotypeLikelihoodsCalculationModel.GENOTYPING_MODE.GENOTYPE_GIVEN_ALLELES) {
|
||||
|
|
@ -499,6 +502,7 @@ public class UnifiedGenotyperEngine {
|
|||
stratifiedContexts = AlignmentContextUtils.splitContextBySampleName(pileup, UAC.ASSUME_SINGLE_SAMPLE);
|
||||
|
||||
} else {
|
||||
|
||||
// todo - tmp will get rid of extended events so this wont be needed
|
||||
if (!rawContext.hasExtendedEventPileup())
|
||||
return null;
|
||||
|
|
@ -516,9 +520,6 @@ public class UnifiedGenotyperEngine {
|
|||
}
|
||||
} else if ( model == GenotypeLikelihoodsCalculationModel.Model.SNP ) {
|
||||
|
||||
if ( !BaseUtils.isRegularBase( refContext.getBase() ) )
|
||||
return null;
|
||||
|
||||
// stratify the AlignmentContext and cut by sample
|
||||
stratifiedContexts = AlignmentContextUtils.splitContextBySampleName(rawContext.getBasePileup(), UAC.ASSUME_SINGLE_SAMPLE);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue