From 8e3acf94154c0bb64421abbd0fc2dc77c6f1eafc Mon Sep 17 00:00:00 2001 From: martinahansen Date: Sat, 19 Nov 2011 09:10:21 +0000 Subject: [PATCH] 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 --- bp_bin/uniq_vals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } ) { -- 2.39.5