Coverage for src/python/ensembl/vep/models/overlap/multiple_feature_overlap.py: 100%
9 statements
« prev ^ index » next coverage.py v7.17.2, created at 2026-11-18 14:41 +0000
« 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"""MultipleFeatureOverlap class."""
16from __future__ import annotations
18from typing import TYPE_CHECKING
19from attr import define, field
21from ensembl.vep.models import Feature
23if TYPE_CHECKING:
24 from ensembl.vep.models.overlap import OverlapConsequence
27@define(kw_only=True, auto_attribs=True)
28class MultipleFeatureOverlap:
29 """
30 Represents an overlap between a feature and multiple overlapping features,
31 along with the consequences of that overlap.
33 Attributes:
34 feature (Feature):
35 The feature that is getting overlapped.
36 overlapping_features (list[Feature]):
37 The features that are overlapping.
38 overlap_consequences (list[OverlapConsequence]):
39 A list of consequences the overlapping features have on the feature.
40 """
42 feature: Feature
43 overlapping_features: list[Feature]
44 overlap_consequences: list[OverlapConsequence] = field(factory=list, init=False)
45 # more ...