lib/Pheno/Ranker/Context.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.4% 21 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Pheno/Ranker/Compare.pm ↑ Summary bin/pheno-ranker »
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;
« lib/Pheno/Ranker/Compare.pm ↑ Summary bin/pheno-ranker »