| 1 | package Pheno::Ranker::Context; | ||
| 2 | |||
| 3 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 8 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 8 | my @FIELDS = qw( | |
| 9 | age align array_regex_qr array_terms_regex_qr config_file debug | ||
| 10 | exclude_terms exclude_variables_regex_qr format id_correspondence | ||
| 11 | graph_max_weight graph_min_weight include_terms max_matrix_records_in_ram | ||
| 12 | matrix_format max_number_vars max_out | ||
| 13 | nodes edges out_file primary_key retain_excluded_phenotypicFeatures | ||
| 14 | seed similarity_metric_cohort sort_by verbose | ||
| 15 | ); | ||
| 16 | |||
| 17 | 8 | has \@FIELDS => ( is => 'ro' ); | |
| 18 | |||
| 19 | 44 | ▶ | sub from_ranker { |
|
Subroutine
from_ranker: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 20 | 44 | my ( $class, $ranker ) = @_; | |
| 21 | 44 | my %context = map { $_ => $ranker->{$_} } grep { exists $ranker->{$_} } @FIELDS; | |
| 22 | 44 | return $class->new(%context); | |
| 23 | } | ||
| 24 | |||
| 25 | 8 | 1; | |