X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fmedian_vals;h=e32415ca05094bb872cf4d193c70fbae1e378a52;hb=c59cc231c38eb62f8acd0bd604cadca057583802;hp=b999665e57d23b216dc813b77acc22272f783846;hpb=4edbb58ed5bb576baf5803866a7d9c02f79e27d7;p=biopieces.git diff --git a/bp_bin/median_vals b/bp_bin/median_vals index b999665..e32415c 100755 --- a/bp_bin/median_vals +++ b/bp_bin/median_vals @@ -78,10 +78,10 @@ foreach $key ( @{ $options->{ "keys" } } ) $median = "N/A"; } - $new_record->{ $key . "_MEDIAN" } = $mean + $new_record->{ $key . "_MEDIAN" } = $median; } -if ( $options->{ "keys" } ) +if ( $options->{ "keys" } and $new_record ) { $new_record->{ 'REC_TYPE' } = "MEDIAN";