From: martinahansen Date: Sat, 19 Nov 2011 09:10:21 +0000 (+0000) Subject: fixed bug in uniq_vals causing clusters named 0 to be ignored X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8e3acf94154c0bb64421abbd0fc2dc77c6f1eafc;p=biopieces.git fixed bug in uniq_vals causing clusters named 0 to be ignored git-svn-id: http://biopieces.googlecode.com/svn/trunk@1667 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_bin/uniq_vals b/bp_bin/uniq_vals index 0bc6ce0..c9af962 100755 --- a/bp_bin/uniq_vals +++ b/bp_bin/uniq_vals @@ -48,7 +48,7 @@ $out = Maasha::Biopieces::write_stream( $options->{ "stream_out" } ); while ( $record = Maasha::Biopieces::get_record( $in ) ) { - if ( $record->{ $options->{ "key" } } ) + if ( exists $record->{ $options->{ "key" } } ) { if ( not $hash{ $record->{ $options->{ "key" } } } and not $options->{ "invert" } ) {