Coverage for src/python/ensembl/vep/corpus/__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"""Corpus construction and management. 

15 

16A corpus contains variants and their ``(variant, feature)`` overlaps, however they were obtained. 

17Keeping variants explicit preserves inputs with no feature overlap instead of forcing consumers to 

18reconstruct variants from derived overlap records. The synthetic generator lives here rather than 

19under ``annotators/`` because it depends only on ``common`` and ``models`` and backs the 

20session-scoped fixtures of the whole test suite, not one subsystem. 

21""" 

22 

23from ensembl.vep.corpus.base import Corpus, NamedOverlap, NamedVariant 

24from ensembl.vep.corpus.golden import GoldenCorpus, load_golden_corpus 

25from ensembl.vep.corpus.loaded import CorpusResource, LoadedCorpus 

26from ensembl.vep.corpus.registry import ( 

27 CorpusOptionsError, 

28 available_corpora, 

29 build_corpus, 

30 build_corpus_from_options, 

31 register_corpus, 

32) 

33from ensembl.vep.corpus.spec import CorpusSpec 

34from ensembl.vep.corpus.synthetic import SyntheticCorpus 

35 

36__all__ = [ 

37 "Corpus", 

38 "CorpusOptionsError", 

39 "CorpusResource", 

40 "CorpusSpec", 

41 "GoldenCorpus", 

42 "LoadedCorpus", 

43 "NamedOverlap", 

44 "NamedVariant", 

45 "SyntheticCorpus", 

46 "available_corpora", 

47 "build_corpus", 

48 "build_corpus_from_options", 

49 "load_golden_corpus", 

50 "register_corpus", 

51]