Revert "a"

This reverts commit 1175f50ddbf389f5da74d27dc725596582ae15af.
This commit is contained in:
Christopher Hartl 2011-11-09 11:22:26 -05:00
parent 5eaf800281
commit d3a533b82e
1 changed files with 2 additions and 5 deletions

View File

@ -33,11 +33,8 @@ public class MVLikelihoodRatio extends InfoFieldAnnotation implements Experiment
public Map<String, Object> annotate(RefMetaDataTracker tracker, AnnotatorCompatibleWalker walker, ReferenceContext ref, Map<String, AlignmentContext> stratifiedContexts, VariantContext vc) {
if ( mendelianViolation == null ) {
if ( walker instanceof VariantAnnotator) {
if ( ((VariantAnnotator) walker).familyStr != null )
mendelianViolation = new MendelianViolation(((VariantAnnotator)walker).familyStr, ((VariantAnnotator)walker).minGenotypeQualityP );
else
return new HashMap<String,Object>();
if ( walker instanceof VariantAnnotator && ((VariantAnnotator) walker).familyStr != null) {
mendelianViolation = new MendelianViolation(((VariantAnnotator)walker).familyStr, ((VariantAnnotator)walker).minGenotypeQualityP );
}
else {
throw new UserException("Mendelian violation annotation can only be used from the Variant Annotator");