Merge pull request #697 from broadinstitute/ldg_inbreedingCoeffForMultiallelics

Fix nullPointerException
This commit is contained in:
ldgauthier 2014-08-07 11:57:39 -04:00
commit 683baff375
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ public class InbreedingCoeff extends InfoFieldAnnotation implements StandardAnno
for ( final Genotype g : genotypes ) {
if ( g.isCalled() && g.hasLikelihoods() && g.getPloidy() == 2) // only work for diploid samples
sampleCount++;
else
continue;
final double[] normalizedLikelihoods = MathUtils.normalizeFromLog10( g.getLikelihoods().getAsVector() );
if (doMultiallelicMapping)
{