From: martinahansen Date: Tue, 3 Dec 2013 11:42:43 +0000 (+0000) Subject: fixed name issue in uclust_seq X-Git-Url: https://git.donarmstrong.com/?p=biopieces.git;a=commitdiff_plain;h=ea737d66bd9dbc2f134c0809f026239ad4caf473 fixed name issue in uclust_seq git-svn-id: http://biopieces.googlecode.com/svn/trunk@2271 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_bin/uclust_seq b/bp_bin/uclust_seq index 5a6d0ef..5b162c4 100755 --- a/bp_bin/uclust_seq +++ b/bp_bin/uclust_seq @@ -71,8 +71,8 @@ end Biopieces.open(file_records, options[:stream_out]) do |input, output| input.each_record do |record| if record[:SEQ_NAME] and record[:SEQ] - if hash[record[:SEQ_NAME].to_sym] - us = hash[record[:SEQ_NAME].to_sym] + seq_name = record[:SEQ_NAME].split(/\s+/).first.to_sym + if us = hash[seq_name] record[:CLUSTER] = us[:CLUSTER].to_i record[:IDENT] = us[:IDENT].to_i record[:IDENT] = '*' if us[:TYPE] == 'S'