Coverage for src/python/ensembl/vep/annotators/haplo/linear.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"""Haplotype-aware linear annotator scaffold. 

15 

16This placeholder keeps the ``haplo.`` registry namespace available until annotation evaluates 

17phased allele combinations. It currently delegates to the consequence linear annotator. 

18""" 

19 

20from __future__ import annotations 

21 

22from ensembl.vep.annotators.consequence.strategies.linear import ( 

23 LinearFactsAnnotator as ConsequenceLinearFactsAnnotator, 

24) 

25from ensembl.vep.annotators.registry import register_annotator 

26 

27__all__ = ["LinearFactsAnnotator"] 

28 

29 

30@register_annotator("haplo.linear") 

31class LinearFactsAnnotator(ConsequenceLinearFactsAnnotator): 

32 """Provide the consequence linear annotator under the haplotype namespace. 

33 

34 Attributes: 

35 name (str): Registry name, "haplo.linear". 

36 """ 

37 

38 name = "haplo.linear"