Coverage for src/python/ensembl/vep/annotators/consequence/strategies/__init__.py: 100%

7 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"""Interchangeable ways to evaluate the consequence rule set. 

15 

16``ConsequenceAnnotator`` is the shared implementation each strategy subclasses. The modules 

17beside it are the strategies themselves. Importing this package registers every ``consequence.*`` 

18annotator as an import side effect. 

19 

20Registry names represent evaluation strategies rather than strategy-cache combinations. Callers 

21configure zone-map and codon caches independently through the annotator context. 

22 

23* ``linear`` -- rank-ordered scan with a cheap-guard digest cache. The conformance reference. 

24* ``staged`` -- cheap facts first, then ``requires`` propagation; expensive tier only on demand. 

25* ``columnar`` -- bit-parallel over a batch; cuts dispatch, not fact cost. 

26* ``columnar-staged`` -- both of the above: bit-parallel with forced-false staging masks. 

27* ``columnar-kernels`` -- columnar staging with selected columns filled by native batch kernels. 

28 

29What was ``regular.columnar-staged-zonemap`` is now 

30``ColumnarStagedAnnotator(zone_map=ZoneMapCache(), codon_cache=CodonEditLRUCache())``. 

31""" 

32 

33from __future__ import annotations 

34 

35from .base import * 

36from .linear import * 

37from .staged import * 

38from .columnar import * 

39from .columnar_staged import * 

40from .columnar_kernels import *