The prebuild statistics are part of the genomic resource files. For example, for a position score phyloP7way, the directory structure should be similar to the following:
Example score statistics interface to access this data should be similar to the following:
class GenomicScoreStatistics:
def __init__(self, resource: GenomicResource):
self.resource = resource
def get_score_min(self, score_id: str) -> Optional[float]:
"""Read and return score min value.
The method should construct
score_id MinMaxStatistics filename. If the file does not exist, return
None.
If the file exists, read the content of the file
from the resource, deserialize it using MinMaxStatistic.deserialize
and return min_value.
"""
def get_score_max(self, score_id: str) -> Optional[float]:
"""Read and return score max value.
Implementation should similar to the above.
"""
def get_score_histogram(self, score_id: str) -> Optional[Histogram]:
"""Read and return the histogram of score_id.
This method should construct the score_id histogram filename. If the
file does not exist, the method should return None.
If the file exists, the method will read the file content and deserialize it using
Histogram.deserialize() and return the result.
"""
The prebuild statistics are part of the genomic resource files. For example, for a position score
phyloP7way,
the directory structure should be similar to the following:For
CADD_v1.4
that has two scores, the directory structure should be similar to:Example score statistics interface to access this data should be similar to the following: