Coverage for src/python/ensembl/vep/trace/__init__.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.17.2, created at 2026-11-18 14:41 +0000

1# See the NOTICE file distributed with this work for additional information 

2# regarding copyright ownership. 

3# 

4# Licensed under the Apache License, Version 2.0 (the "License"); 

5# you may not use this file except in compliance with the License. 

6# You may obtain a copy of the License at 

7# http://www.apache.org/licenses/LICENSE-2.0 

8# 

9# Unless required by applicable law or agreed to in writing, software 

10# distributed under the License is distributed on an "AS IS" BASIS, 

11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

12# See the License for the specific language governing permissions and 

13# limitations under the License. 

14"""Derivation traces for consequence annotations. 

15 

16A trace records the facts, rule verdicts, subsumption decisions, and emitted terms for one 

17overlap. The package sits below ``annotators`` because fact evaluation and caches both depend on 

18its event types. 

19 

20Only annotation and event types are re-exported here. Reconstruction and aggregation depend on 

21higher layers that already import this package, so import those features from their modules to 

22avoid dependency cycles. Comparing and summarising a finished trace is not tracing at all: that 

23lives in ``ensembl.vep.explain``. 

24""" 

25 

26from __future__ import annotations 

27 

28from ensembl.vep.trace.annotation import AnnotationTrace, annotation_tracing, describe_overlap 

29from ensembl.vep.trace.events import FactEvent, FactOrigin, PruneEvent, RuleEvent, TraceRecorder 

30 

31__all__ = [ 

32 "AnnotationTrace", 

33 "FactEvent", 

34 "FactOrigin", 

35 "PruneEvent", 

36 "RuleEvent", 

37 "TraceRecorder", 

38 "annotation_tracing", 

39 "describe_overlap", 

40]