owltools.gaf.rules
Class AnnotationTaxonRule
java.lang.Object
owltools.gaf.rules.AbstractAnnotationRule
owltools.gaf.rules.AnnotationTaxonRule
- All Implemented Interfaces:
- AnnotationRule
- Direct Known Subclasses:
- GoAnnotationTaxonRule
public class AnnotationTaxonRule
- extends AbstractAnnotationRule
Checks if an annotation is valid according to taxon constraints.
- Author:
- cjm
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationTaxonRule
public AnnotationTaxonRule(OWLGraphWrapper graph,
String neverId,
String onlyId)
- Parameters:
graph
- The OWLGraphWrapper
with merged-in taxon constraintsneverId
- onlyId
-
getRuleViolations
public Set<AnnotationRuleViolation> getRuleViolations(GeneAnnotation a)
- Description copied from interface:
AnnotationRule
- Given an annotation, find the set of violations using the rule
- Specified by:
getRuleViolations
in interface AnnotationRule
- Specified by:
getRuleViolations
in class AbstractAnnotationRule
- Parameters:
a
- annotation
- Returns:
- set of violations
- See Also:
AnnotationRule.isAnnotationLevel()
check
public boolean check(String annotationCls,
String taxonCls)
getRuleViolations
public Set<AnnotationRuleViolation> getRuleViolations(String annotationCls,
String taxonCls)
Copyright © 2010-2012. All Rights Reserved.