GOReciprocalAnnotationRule extends AbstractAnnotationRule { @Override public Set<AnnotationRuleViolation> getRuleViolations(GeneAnnotation a) { return Collections.emptySet(); } GOReciprocalAnnotationRule(OWLGraphWrapper graph, TraversingEcoMapper eco); @Override Set<AnnotationRuleViolation> getRuleViolations(GeneAnnotation a); @Override boolean isAnnotationLevel(); @Override Set<AnnotationRuleViolation> getRuleViolations(GafDocument gafDoc); @Override boolean isDocumentLevel(); static final String PERMANENT_JAVA_ID; }
@Test public void test() throws Exception { GafDocument gafdoc = loadGaf("test_gene_association_mgi.gaf"); AnnotationRule rule = new GOReciprocalAnnotationRule(graph, eco); Set<AnnotationRuleViolation> violations = rule.getRuleViolations(gafdoc); assertEquals(5, violations.size()); }