Coverage for src/python/ensembl/vep/stats/__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"""Run statistics: the term-level summary a run writes by default, and the opt-in fact profile. 

15 

16Two planes, kept as two types on purpose. ``RunSummary`` costs about a millisecond a run and is 

17on by default; ``RunTrace`` (``ensembl.vep.trace.run``) is fact-level, measured at 1.3-1.7x on the 

18hottest path, and exists only when tracing is on. One merged type would stop the signature saying 

19what it costs to produce. Both satisfy ``Reportable``, so the renderers never branch on which they 

20were handed. 

21""" 

22 

23from __future__ import annotations 

24 

25from ensembl.vep.stats.report import Reportable, render_reportable 

26from ensembl.vep.stats.summary import RunSummary, RunSummaryCollector, RunSummaryDelta 

27 

28__all__ = ["Reportable", "RunSummary", "RunSummaryCollector", "RunSummaryDelta", "render_reportable"]