diff --git a/java/src/org/broadinstitute/sting/gatk/contexts/variantcontext/VariantContextUtils.java b/java/src/org/broadinstitute/sting/gatk/contexts/variantcontext/VariantContextUtils.java index 4c3fedb26..24976fbc0 100755 --- a/java/src/org/broadinstitute/sting/gatk/contexts/variantcontext/VariantContextUtils.java +++ b/java/src/org/broadinstitute/sting/gatk/contexts/variantcontext/VariantContextUtils.java @@ -539,8 +539,14 @@ public class VariantContextUtils { List inAlleles = g.getAlleles(); List newGenotypeAlleles = new ArrayList(); for (Allele a : inAlleles) { - String newBases = new String(new byte[]{refByte}) + new String(a.getBases()); - newGenotypeAlleles.add(Allele.create(newBases,a.isReference())); + if (a.isCalled()) { + String newBases = new String(new byte[]{refByte}) + new String(a.getBases()); + newGenotypeAlleles.add(Allele.create(newBases,a.isReference())); + } + else { + // add no-call allele + newGenotypeAlleles.add(Allele.NO_CALL); + } } genotypes.put(sample, new Genotype(sample, newGenotypeAlleles, g.getNegLog10PError(), g.getFilters(),g.getAttributes(),g.genotypesArePhased()));