| 1 | package Microarray::Spot; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 5 | ▶ | use 5.006; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 5 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 5 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 5 | our $VERSION = '1.18'; | |||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | # an array_spot object contains all of the data | ||||||||||||||||||||||||||||
| 10 | # imported from the data_file for a single spot | ||||||||||||||||||||||||||||
| 11 | # spot objects are identified by a spot index, derived from the data_file | ||||||||||||||||||||||||||||
| 12 | { package array_spot; | ||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 4 | ▶ | sub new { | ||||||||||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 15 | 4 | my $class = shift; | |||||||||||||||||||||||||||
| 16 | 4 | my $self = { }; | |||||||||||||||||||||||||||
| 17 | 4 | bless $self, $class; | |||||||||||||||||||||||||||
| 18 | 4 | return $self; | |||||||||||||||||||||||||||
| 19 | } | ||||||||||||||||||||||||||||
| 20 | # status indicates whether the spot was rejected or not | ||||||||||||||||||||||||||||
| 21 | 7 | ▶ | sub spot_status { | ||||||||||||||||||||||||||
|
Subroutine
spot_status: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 22 | 7 | my $self = shift; | |||||||||||||||||||||||||||
| 23 | @_ ? $self->{ _spot_status } = shift | ||||||||||||||||||||||||||||
| 24 | 7 | ▶ | : $self->{ _spot_status }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | 0 | ▶ | sub all_spot_values { | ||||||||||||||||||||||||||
|
Subroutine
all_spot_values: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 27 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | 0 | my $spot_index = $self->spot_index; | |||||||||||||||||||||||||||
| 30 | 0 | my $block_row = $self->block_row; | |||||||||||||||||||||||||||
| 31 | 0 | my $block_col = $self->block_col; | |||||||||||||||||||||||||||
| 32 | 0 | my $spot_row = $self->spot_row; | |||||||||||||||||||||||||||
| 33 | 0 | my $spot_col = $self->spot_col; | |||||||||||||||||||||||||||
| 34 | 0 | my $x_pos = $self->x_pos; | |||||||||||||||||||||||||||
| 35 | 0 | my $y_pos = $self->y_pos; | |||||||||||||||||||||||||||
| 36 | 0 | my $diameter = $self->spot_diameter; | |||||||||||||||||||||||||||
| 37 | 0 | my $spot_name = $self->feature_id; | |||||||||||||||||||||||||||
| 38 | 0 | my $spot_id = $self->synonym_id; | |||||||||||||||||||||||||||
| 39 | 0 | my $f_pixels = $self->spot_pixels; | |||||||||||||||||||||||||||
| 40 | 0 | my $b_pixels = $self->bg_pixels; | |||||||||||||||||||||||||||
| 41 | 0 | my $footprint = $self->footprint; | |||||||||||||||||||||||||||
| 42 | 0 | my $flag = $self->flag_id; | |||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||
| 44 | 0 | my $ch1_mean_f = $self->ch1_mean_f; | |||||||||||||||||||||||||||
| 45 | 0 | my $ch1_median_f = $self->ch1_median_f; | |||||||||||||||||||||||||||
| 46 | 0 | my $ch1_sd_f = $self->ch1_sd_f; | |||||||||||||||||||||||||||
| 47 | 0 | my $ch1_mean_b = $self->ch1_mean_b; | |||||||||||||||||||||||||||
| 48 | 0 | my $ch1_median_b = $self->ch1_median_b; | |||||||||||||||||||||||||||
| 49 | 0 | my $ch1_sd_b = $self->ch1_sd_b; | |||||||||||||||||||||||||||
| 50 | 0 | my $ch1b1sd = $self->ch1_b1sd; | |||||||||||||||||||||||||||
| 51 | 0 | my $ch1b2sd = $self->channel1_quality; | |||||||||||||||||||||||||||
| 52 | 0 | my $ch1fsat = $self->channel1_sat; | |||||||||||||||||||||||||||
| 53 | |||||||||||||||||||||||||||||
| 54 | 0 | my $ch2_mean_f = $self->ch2_mean_f; | |||||||||||||||||||||||||||
| 55 | 0 | my $ch2_median_f = $self->ch2_median_f; | |||||||||||||||||||||||||||
| 56 | 0 | my $ch2_sd_f = $self->ch2_sd_f; | |||||||||||||||||||||||||||
| 57 | 0 | my $ch2_mean_b = $self->ch2_mean_b; | |||||||||||||||||||||||||||
| 58 | 0 | my $ch2_median_b = $self->ch2_median_b; | |||||||||||||||||||||||||||
| 59 | 0 | my $ch2_sd_b = $self->ch2_sd_b; | |||||||||||||||||||||||||||
| 60 | 0 | my $ch2b1sd = $self->ch2_b1sd; | |||||||||||||||||||||||||||
| 61 | 0 | my $ch2b2sd = $self->channel2_quality; | |||||||||||||||||||||||||||
| 62 | 0 | my $ch2fsat = $self->channel2_sat; | |||||||||||||||||||||||||||
| 63 | |||||||||||||||||||||||||||||
| 64 | 0 | return " '$spot_index','$block_row','$block_col','$spot_row', | |||||||||||||||||||||||||||
| 65 | '$spot_col','$x_pos','$y_pos','$spot_name','$spot_id','$f_pixels', | ||||||||||||||||||||||||||||
| 66 | '$b_pixels','$footprint','$flag','$ch1_mean_f','$ch1_median_f', | ||||||||||||||||||||||||||||
| 67 | '$ch1_sd_f','$ch1_mean_b','$ch1_median_b','$ch1_sd_b','$ch1b1sd', | ||||||||||||||||||||||||||||
| 68 | '$ch1b2sd','$ch1fsat','$ch2_mean_f','$ch2_median_f','$ch2_sd_f','$ch2_mean_b', | ||||||||||||||||||||||||||||
| 69 | '$ch2_median_b','$ch2_sd_b','$ch2b1sd','$ch2b2sd','$ch2fsat','$diameter' "; | ||||||||||||||||||||||||||||
| 70 | } | ||||||||||||||||||||||||||||
| 71 | 5 | ▶ | sub ch2_b1sd { | ||||||||||||||||||||||||||
|
Subroutine
ch2_b1sd: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 72 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 73 | @_ ? $self->{ _ch2_b1sd } = shift | ||||||||||||||||||||||||||||
| 74 | 5 | ▶ | : $self->{ _ch2_b1sd }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 75 | } | ||||||||||||||||||||||||||||
| 76 | 7 | ▶ | sub ch2_sd_b { | ||||||||||||||||||||||||||
|
Subroutine
ch2_sd_b: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 77 | 7 | my $self = shift; | |||||||||||||||||||||||||||
| 78 | @_ ? $self->{ _ch2_sd_b } = shift | ||||||||||||||||||||||||||||
| 79 | 7 | ▶ | : $self->{ _ch2_sd_b }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 80 | } | ||||||||||||||||||||||||||||
| 81 | 15 | ▶ | sub ch2_median_b { | ||||||||||||||||||||||||||
|
Subroutine
ch2_median_b: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 82 | 15 | my $self = shift; | |||||||||||||||||||||||||||
| 83 | @_ ? $self->{ _ch2_median_b } = shift | ||||||||||||||||||||||||||||
| 84 | 15 | ▶ | : $self->{ _ch2_median_b }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 85 | } | ||||||||||||||||||||||||||||
| 86 | 5 | ▶ | sub ch2_mean_b { | ||||||||||||||||||||||||||
|
Subroutine
ch2_mean_b: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 87 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 88 | @_ ? $self->{ _ch2_mean_b } = shift | ||||||||||||||||||||||||||||
| 89 | 5 | ▶ | : $self->{ _ch2_mean_b }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 90 | } | ||||||||||||||||||||||||||||
| 91 | 5 | ▶ | sub ch2_sd_f { | ||||||||||||||||||||||||||
|
Subroutine
ch2_sd_f: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 92 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 93 | @_ ? $self->{ _ch2_sd_f } = shift | ||||||||||||||||||||||||||||
| 94 | 5 | ▶ | : $self->{ _ch2_sd_f }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 95 | } | ||||||||||||||||||||||||||||
| 96 | 7 | ▶ | sub ch2_median_f { | ||||||||||||||||||||||||||
|
Subroutine
ch2_median_f: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 97 | 7 | my $self = shift; | |||||||||||||||||||||||||||
| 98 | @_ ? $self->{ _ch2_median_f } = shift | ||||||||||||||||||||||||||||
| 99 | 7 | ▶ | : $self->{ _ch2_median_f }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 100 | } | ||||||||||||||||||||||||||||
| 101 | 15 | ▶ | sub ch2_mean_f { | ||||||||||||||||||||||||||
|
Subroutine
ch2_mean_f: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 102 | 15 | my $self = shift; | |||||||||||||||||||||||||||
| 103 | @_ ? $self->{ _ch2_mean_f } = shift | ||||||||||||||||||||||||||||
| 104 | 15 | ▶ | : $self->{ _ch2_mean_f }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 105 | } | ||||||||||||||||||||||||||||
| 106 | 5 | ▶ | sub ch1_b1sd { | ||||||||||||||||||||||||||
|
Subroutine
ch1_b1sd: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 107 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 108 | @_ ? $self->{ _ch1_b1sd } = shift | ||||||||||||||||||||||||||||
| 109 | 5 | ▶ | : $self->{ _ch1_b1sd }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 110 | } | ||||||||||||||||||||||||||||
| 111 | 8 | ▶ | sub ch1_sd_b { | ||||||||||||||||||||||||||
|
Subroutine
ch1_sd_b: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 112 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 113 | @_ ? $self->{ _ch1_sd_b } = shift | ||||||||||||||||||||||||||||
| 114 | 8 | ▶ | : $self->{ _ch1_sd_b }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 115 | } | ||||||||||||||||||||||||||||
| 116 | 15 | ▶ | sub ch1_median_b { | ||||||||||||||||||||||||||
|
Subroutine
ch1_median_b: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 117 | 15 | my $self = shift; | |||||||||||||||||||||||||||
| 118 | @_ ? $self->{ _ch1_median_b } = shift | ||||||||||||||||||||||||||||
| 119 | 15 | ▶ | : $self->{ _ch1_median_b }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 120 | } | ||||||||||||||||||||||||||||
| 121 | 5 | ▶ | sub ch1_mean_b { | ||||||||||||||||||||||||||
|
Subroutine
ch1_mean_b: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 122 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 123 | @_ ? $self->{ _ch1_mean_b } = shift | ||||||||||||||||||||||||||||
| 124 | 5 | ▶ | : $self->{ _ch1_mean_b }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 125 | } | ||||||||||||||||||||||||||||
| 126 | 5 | ▶ | sub ch1_sd_f { | ||||||||||||||||||||||||||
|
Subroutine
ch1_sd_f: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 127 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 128 | @_ ? $self->{ _ch1_sd_f } = shift | ||||||||||||||||||||||||||||
| 129 | 5 | ▶ | : $self->{ _ch1_sd_f }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 130 | } | ||||||||||||||||||||||||||||
| 131 | 8 | ▶ | sub ch1_median_f { | ||||||||||||||||||||||||||
|
Subroutine
ch1_median_f: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 132 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 133 | @_ ? $self->{ _ch1_median_f } = shift | ||||||||||||||||||||||||||||
| 134 | 8 | ▶ | : $self->{ _ch1_median_f }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 135 | } | ||||||||||||||||||||||||||||
| 136 | 5 | ▶ | sub block_row { | ||||||||||||||||||||||||||
|
Subroutine
block_row: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 137 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 138 | @_ ? $self->{ _block_row } = shift | ||||||||||||||||||||||||||||
| 139 | 5 | ▶ | : $self->{ _block_row }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 140 | } | ||||||||||||||||||||||||||||
| 141 | 5 | ▶ | sub block_col { | ||||||||||||||||||||||||||
|
Subroutine
block_col: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 142 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 143 | @_ ? $self->{ _block_col } = shift | ||||||||||||||||||||||||||||
| 144 | 5 | ▶ | : $self->{ _block_col }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 145 | } | ||||||||||||||||||||||||||||
| 146 | 5 | ▶ | sub footprint { | ||||||||||||||||||||||||||
|
Subroutine
footprint: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 147 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 148 | @_ ? $self->{ _footprint } = shift | ||||||||||||||||||||||||||||
| 149 | 5 | ▶ | : $self->{ _footprint }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 150 | } | ||||||||||||||||||||||||||||
| 151 | 5 | ▶ | sub spot_row { | ||||||||||||||||||||||||||
|
Subroutine
spot_row: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 152 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 153 | @_ ? $self->{ _spot_row } = shift | ||||||||||||||||||||||||||||
| 154 | 5 | ▶ | : $self->{ _spot_row }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 155 | } | ||||||||||||||||||||||||||||
| 156 | 5 | ▶ | sub spot_col { | ||||||||||||||||||||||||||
|
Subroutine
spot_col: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 157 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 158 | @_ ? $self->{ _spot_col } = shift | ||||||||||||||||||||||||||||
| 159 | 5 | ▶ | : $self->{ _spot_col }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 160 | } | ||||||||||||||||||||||||||||
| 161 | 7 | ▶ | sub x_pos { | ||||||||||||||||||||||||||
|
Subroutine
x_pos: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 162 | 7 | my $self = shift; | |||||||||||||||||||||||||||
| 163 | @_ ? $self->{ _x_pos } = shift | ||||||||||||||||||||||||||||
| 164 | 7 | ▶ | : $self->{ _x_pos }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 165 | } | ||||||||||||||||||||||||||||
| 166 | 7 | ▶ | sub y_pos { | ||||||||||||||||||||||||||
|
Subroutine
y_pos: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 167 | 7 | my $self = shift; | |||||||||||||||||||||||||||
| 168 | @_ ? $self->{ _y_pos } = shift | ||||||||||||||||||||||||||||
| 169 | 7 | ▶ | : $self->{ _y_pos }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 170 | } | ||||||||||||||||||||||||||||
| 171 | 5 | ▶ | sub bg_pixels { | ||||||||||||||||||||||||||
|
Subroutine
bg_pixels: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 172 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 173 | @_ ? $self->{ _bg_pixels } = shift | ||||||||||||||||||||||||||||
| 174 | 5 | ▶ | : $self->{ _bg_pixels }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 175 | } | ||||||||||||||||||||||||||||
| 176 | 15 | ▶ | sub ch1_mean_f { | ||||||||||||||||||||||||||
|
Subroutine
ch1_mean_f: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 177 | 15 | my $self = shift; | |||||||||||||||||||||||||||
| 178 | @_ ? $self->{ _ch1_mean_f } = shift | ||||||||||||||||||||||||||||
| 179 | 15 | ▶ | : $self->{ _ch1_mean_f }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 180 | } | ||||||||||||||||||||||||||||
| 181 | 5 | ▶ | sub spot_index { | ||||||||||||||||||||||||||
|
Subroutine
spot_index: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 182 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 183 | @_ ? $self->{ _spot_index } = shift | ||||||||||||||||||||||||||||
| 184 | 5 | ▶ | : $self->{ _spot_index }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 185 | } | ||||||||||||||||||||||||||||
| 186 | 5 | ▶ | sub feature_id { | ||||||||||||||||||||||||||
|
Subroutine
feature_id: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 187 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 188 | @_ ? $self->{ _feature_id } = shift | ||||||||||||||||||||||||||||
| 189 | 5 | ▶ | : $self->{ _feature_id }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 190 | } | ||||||||||||||||||||||||||||
| 191 | 5 | ▶ | sub synonym_id { | ||||||||||||||||||||||||||
|
Subroutine
synonym_id: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 192 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 193 | @_ ? $self->{ _synonym_id } = shift | ||||||||||||||||||||||||||||
| 194 | 5 | ▶ | : $self->{ _synonym_id }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 195 | } | ||||||||||||||||||||||||||||
| 196 | 0 | ▶ | sub log2_ratio { | ||||||||||||||||||||||||||
|
Subroutine
log2_ratio: not called CC=2 SCAR=17.9
| |||||||||||||||||||||||||||||
| 197 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 198 | @_ ? $self->{ _log2_ratio } = shift | ||||||||||||||||||||||||||||
| 199 | 0 | ▶ | : $self->{ _log2_ratio }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 200 | } | ||||||||||||||||||||||||||||
| 201 | 10 | ▶ | sub channel1_signal { | ||||||||||||||||||||||||||
|
Subroutine
channel1_signal: called CC=5 SCAR=20.3
| |||||||||||||||||||||||||||||
| 202 | 10 | my $self = shift; | |||||||||||||||||||||||||||
| 203 | 10 | ▶ | if (@_){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 204 | 0 | $self->{ _channel1_signal } = shift; | |||||||||||||||||||||||||||
| 205 | } else { | ||||||||||||||||||||||||||||
| 206 | 10 | ▶ | if (defined $self->{ _channel1_signal }){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 207 | 0 | return $self->{ _channel1_signal }; | |||||||||||||||||||||||||||
| 208 | } else { | ||||||||||||||||||||||||||||
| 209 | 10 | ▶ | if ((my $ch1_f = $self->ch1_mean_f) && (my $ch1_b = $self->ch1_median_b)){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
my $ch1_f = $self->ch1_mean_f and my $ch1_b = $self->ch1_median_b
MC/DC0%0/2
my $ch1_f = $self->ch1_mean_f and my $ch1_b = $self->ch1_median_b
my $ch1_f = $self->ch1_mean_f
my $ch1_b = $self->ch1_median_b
Truth table33%1/3
A and B
A= my $ch1_f = $self->ch1_mean_fB= my $ch1_b = $self->ch1_median_b
| |||||||||||||||||||||||||||||
| 210 | 10 | return ($ch1_f - $ch1_b); | |||||||||||||||||||||||||||
| 211 | } else { | ||||||||||||||||||||||||||||
| 212 | 0 | return; | |||||||||||||||||||||||||||
| 213 | } | ||||||||||||||||||||||||||||
| 214 | } | ||||||||||||||||||||||||||||
| 215 | } | ||||||||||||||||||||||||||||
| 216 | } | ||||||||||||||||||||||||||||
| 217 | 10 | ▶ | sub channel2_signal { | ||||||||||||||||||||||||||
|
Subroutine
channel2_signal: called CC=5 SCAR=20.3
| |||||||||||||||||||||||||||||
| 218 | 10 | my $self = shift; | |||||||||||||||||||||||||||
| 219 | 10 | ▶ | if (@_){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 220 | 0 | $self->{ _channel2_signal } = shift; | |||||||||||||||||||||||||||
| 221 | } else { | ||||||||||||||||||||||||||||
| 222 | 10 | ▶ | if (defined $self->{ _channel2_signal }){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 223 | 0 | return $self->{ _channel2_signal }; | |||||||||||||||||||||||||||
| 224 | } else { | ||||||||||||||||||||||||||||
| 225 | 10 | ▶ | if ((my $ch2_f = $self->ch2_mean_f) && (my $ch2_b = $self->ch2_median_b)){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
my $ch2_f = $self->ch2_mean_f and my $ch2_b = $self->ch2_median_b
MC/DC0%0/2
my $ch2_f = $self->ch2_mean_f and my $ch2_b = $self->ch2_median_b
my $ch2_f = $self->ch2_mean_f
my $ch2_b = $self->ch2_median_b
Truth table33%1/3
A and B
A= my $ch2_f = $self->ch2_mean_fB= my $ch2_b = $self->ch2_median_b
| |||||||||||||||||||||||||||||
| 226 | 10 | return ($ch2_f - $ch2_b); | |||||||||||||||||||||||||||
| 227 | } else { | ||||||||||||||||||||||||||||
| 228 | 0 | return; | |||||||||||||||||||||||||||
| 229 | } | ||||||||||||||||||||||||||||
| 230 | } | ||||||||||||||||||||||||||||
| 231 | } | ||||||||||||||||||||||||||||
| 232 | } | ||||||||||||||||||||||||||||
| 233 | 3 | ▶ | sub channel1_snr { | ||||||||||||||||||||||||||
|
Subroutine
channel1_snr: called CC=5 SCAR=20.3
| |||||||||||||||||||||||||||||
| 234 | 3 | my $self = shift; | |||||||||||||||||||||||||||
| 235 | 3 | ▶ | if (@_){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 236 | 0 | $self->{ _channel1_snr } = shift; | |||||||||||||||||||||||||||
| 237 | } else { | ||||||||||||||||||||||||||||
| 238 | 3 | ▶ | if (defined $self->{ _channel1_snr }){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 239 | 0 | return $self->{ _channel1_snr }; | |||||||||||||||||||||||||||
| 240 | } else { | ||||||||||||||||||||||||||||
| 241 | 3 | ▶ | if ((my $ch1_f = $self->ch1_median_f) && (my $ch1_sd_b = $self->ch1_sd_b)){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
my $ch1_f = $self->ch1_median_f and my $ch1_sd_b = $self->ch1_sd_b
MC/DC0%0/2
my $ch1_f = $self->ch1_median_f and my $ch1_sd_b = $self->ch1_sd_b
my $ch1_f = $self->ch1_median_f
my $ch1_sd_b = $self->ch1_sd_b
Truth table33%1/3
A and B
A= my $ch1_f = $self->ch1_median_fB= my $ch1_sd_b = $self->ch1_sd_b
| |||||||||||||||||||||||||||||
| 242 | 3 | return ($ch1_f - $ch1_sd_b); | |||||||||||||||||||||||||||
| 243 | } else { | ||||||||||||||||||||||||||||
| 244 | 0 | return; | |||||||||||||||||||||||||||
| 245 | } | ||||||||||||||||||||||||||||
| 246 | } | ||||||||||||||||||||||||||||
| 247 | } | ||||||||||||||||||||||||||||
| 248 | } | ||||||||||||||||||||||||||||
| 249 | 2 | ▶ | sub channel2_snr { | ||||||||||||||||||||||||||
|
Subroutine
channel2_snr: called CC=5 SCAR=20.3
| |||||||||||||||||||||||||||||
| 250 | 2 | my $self = shift; | |||||||||||||||||||||||||||
| 251 | 2 | ▶ | if (@_){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 252 | 0 | $self->{ _channel2_snr } = shift; | |||||||||||||||||||||||||||
| 253 | } else { | ||||||||||||||||||||||||||||
| 254 | 2 | ▶ | if (defined $self->{ _channel2_snr }){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 255 | 0 | return $self->{ _channel2_snr }; | |||||||||||||||||||||||||||
| 256 | } else { | ||||||||||||||||||||||||||||
| 257 | 2 | ▶ | if ((my $ch2_f = $self->ch2_median_f) && (my $ch2_sd_b = $self->ch2_sd_b)){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
my $ch2_f = $self->ch2_median_f and my $ch2_sd_b = $self->ch2_sd_b
MC/DC0%0/2
my $ch2_f = $self->ch2_median_f and my $ch2_sd_b = $self->ch2_sd_b
my $ch2_f = $self->ch2_median_f
my $ch2_sd_b = $self->ch2_sd_b
Truth table33%1/3
A and B
A= my $ch2_f = $self->ch2_median_fB= my $ch2_sd_b = $self->ch2_sd_b
| |||||||||||||||||||||||||||||
| 258 | 2 | return ($ch2_f - $ch2_sd_b); | |||||||||||||||||||||||||||
| 259 | } else { | ||||||||||||||||||||||||||||
| 260 | 0 | return; | |||||||||||||||||||||||||||
| 261 | } | ||||||||||||||||||||||||||||
| 262 | } | ||||||||||||||||||||||||||||
| 263 | } | ||||||||||||||||||||||||||||
| 264 | } | ||||||||||||||||||||||||||||
| 265 | 7 | ▶ | sub channel1_quality { | ||||||||||||||||||||||||||
|
Subroutine
channel1_quality: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 266 | 7 | my $self = shift; | |||||||||||||||||||||||||||
| 267 | @_ ? $self->{ _channel1_quality } = shift | ||||||||||||||||||||||||||||
| 268 | 7 | ▶ | : $self->{ _channel1_quality }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 269 | } | ||||||||||||||||||||||||||||
| 270 | 7 | ▶ | sub channel2_quality { | ||||||||||||||||||||||||||
|
Subroutine
channel2_quality: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 271 | 7 | my $self = shift; | |||||||||||||||||||||||||||
| 272 | @_ ? $self->{ _channel2_quality } = shift | ||||||||||||||||||||||||||||
| 273 | 7 | ▶ | : $self->{ _channel2_quality }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 274 | } | ||||||||||||||||||||||||||||
| 275 | 8 | ▶ | sub channel1_sat { | ||||||||||||||||||||||||||
|
Subroutine
channel1_sat: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 276 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 277 | @_ ? $self->{ _channel1_sat } = shift | ||||||||||||||||||||||||||||
| 278 | 8 | ▶ | : $self->{ _channel1_sat }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 279 | } | ||||||||||||||||||||||||||||
| 280 | 7 | ▶ | sub channel2_sat { | ||||||||||||||||||||||||||
|
Subroutine
channel2_sat: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 281 | 7 | my $self = shift; | |||||||||||||||||||||||||||
| 282 | @_ ? $self->{ _channel2_sat } = shift | ||||||||||||||||||||||||||||
| 283 | 7 | ▶ | : $self->{ _channel2_sat }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 284 | } | ||||||||||||||||||||||||||||
| 285 | 9 | ▶ | sub spot_diameter { | ||||||||||||||||||||||||||
|
Subroutine
spot_diameter: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 286 | 9 | my $self = shift; | |||||||||||||||||||||||||||
| 287 | @_ ? $self->{ _spot_diameter } = shift | ||||||||||||||||||||||||||||
| 288 | 9 | ▶ | : $self->{ _spot_diameter }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 289 | } | ||||||||||||||||||||||||||||
| 290 | 5 | ▶ | sub spot_pixels { | ||||||||||||||||||||||||||
|
Subroutine
spot_pixels: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 291 | 5 | my $self = shift; | |||||||||||||||||||||||||||
| 292 | @_ ? $self->{ _spot_pixels } = shift | ||||||||||||||||||||||||||||
| 293 | 5 | ▶ | : $self->{ _spot_pixels }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 294 | } | ||||||||||||||||||||||||||||
| 295 | 8 | ▶ | sub flag_id { | ||||||||||||||||||||||||||
|
Subroutine
flag_id: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||
| 296 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 297 | @_ ? $self->{ _flag_id } = shift | ||||||||||||||||||||||||||||
| 298 | 8 | ▶ | : $self->{ _flag_id }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 299 | } | ||||||||||||||||||||||||||||
| 300 | 0 | ▶ | sub other_fields { | ||||||||||||||||||||||||||
|
Subroutine
other_fields: not called CC=3 SCAR=24.8
| |||||||||||||||||||||||||||||
| 301 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 302 | 0 | my $field = shift; | |||||||||||||||||||||||||||
| 303 | 0 | ▶ | unless (defined $self->{ _other_fields }){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 304 | 0 | $self->{ _other_fields } = { }; | |||||||||||||||||||||||||||
| 305 | } | ||||||||||||||||||||||||||||
| 306 | 0 | my $hOthers = $self->{ _other_fields }; | |||||||||||||||||||||||||||
| 307 | 0 | ▶ | if (@_){ | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 308 | 0 | $hOthers->{ $field } = shift; | |||||||||||||||||||||||||||
| 309 | } else { | ||||||||||||||||||||||||||||
| 310 | 0 | $hOthers->{ $field }; | |||||||||||||||||||||||||||
| 311 | } | ||||||||||||||||||||||||||||
| 312 | } | ||||||||||||||||||||||||||||
| 313 | } | ||||||||||||||||||||||||||||
| 314 | |||||||||||||||||||||||||||||
| 315 | 5 | 1; | |||||||||||||||||||||||||||
| 316 | |||||||||||||||||||||||||||||
| 317 | |||||||||||||||||||||||||||||
| 318 | __END__ | ||||||||||||||||||||||||||||