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:
parent
b668d32cf1
commit
7b702b086f
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue