You don't need to be bi-allelic to have a non-ref alt allele frequnecy, but you do have to be a variant.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2495 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2010-01-03 22:02:39 +00:00
parent b668d32cf1
commit 7b702b086f
1 changed files with 2 additions and 2 deletions

View File

@ -248,8 +248,8 @@ public class VCFRecord implements Variation, VariantBackedByGenotype {
}
public double getNonRefAlleleFrequency() {
if ( !isBiallelic() )
throw new StingException("This VCF record is not bi-allelic.");
if ( isReference() )
throw new StingException("This VCF record is not variant.");
if ( mInfoFields.containsKey(ALLELE_FREQUENCY_KEY) ) {
return Double.valueOf(mInfoFields.get(ALLELE_FREQUENCY_KEY));