Merge pull request #697 from broadinstitute/ldg_inbreedingCoeffForMultiallelics
Fix nullPointerException
This commit is contained in:
commit
683baff375
|
|
@ -108,6 +108,8 @@ public class InbreedingCoeff extends InfoFieldAnnotation implements StandardAnno
|
||||||
for ( final Genotype g : genotypes ) {
|
for ( final Genotype g : genotypes ) {
|
||||||
if ( g.isCalled() && g.hasLikelihoods() && g.getPloidy() == 2) // only work for diploid samples
|
if ( g.isCalled() && g.hasLikelihoods() && g.getPloidy() == 2) // only work for diploid samples
|
||||||
sampleCount++;
|
sampleCount++;
|
||||||
|
else
|
||||||
|
continue;
|
||||||
final double[] normalizedLikelihoods = MathUtils.normalizeFromLog10( g.getLikelihoods().getAsVector() );
|
final double[] normalizedLikelihoods = MathUtils.normalizeFromLog10( g.getLikelihoods().getAsVector() );
|
||||||
if (doMultiallelicMapping)
|
if (doMultiallelicMapping)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue