gain.gene_scores.implementations package
Submodules
gain.gene_scores.implementations.gene_scores_impl module
- class GeneScoreImplementation(resource: GenomicResource)[source]
Bases:
ScoreImplementationBaseClass used to represent gene score resource implementations.
- calc_info_hash() bytes[source]
Compute the digest of the inputs of the info page.
The page is rendered again only when the digest changes.
- Returns:
The digest of everything that
get_infodepends on.- Return type:
bytes
- calc_statistics_hash() bytes[source]
Compute the digest of the inputs of the statistics build.
grr_managecompares the digest with the stored one to decide whether it must compute the statistics again.- Returns:
The digest of everything that the statistics tasks read.
- Return type:
bytes
- create_statistics_build_tasks(*, region_size: int = 3000000000, grr: GenomicResourceRepo | None = None) list[TaskDesc][source]
Create tasks for calculating resource statistics for task graph.
Kept abstract: gene and genomic scores build statistics with genuinely different task shapes (a single DataFrame scan versus a region-split DAG), so each family provides its own.
- get_info(**kwargs: Any) str[source]
Render the HTML of the info page of the resource.
- Parameters:
**kwargs (Any) – Options of the renderer. The caller defines them.
- Returns:
The HTML of the page.
- Return type:
str
- get_statistics_info(**kwargs: Any) str[source]
Render the HTML of the statistics page of the resource.
- Parameters:
**kwargs (Any) – Options of the renderer. The caller defines them.
- Returns:
The HTML of the page.
- Return type:
str
- styles_template_name: ClassVar[str] = 'gene_score_styles.jinja'
- template_name: ClassVar[str] = 'gene_score.jinja'