From ea737d66bd9dbc2f134c0809f026239ad4caf473 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Tue, 3 Dec 2013 11:42:43 +0000 Subject: [PATCH] fixed name issue in uclust_seq git-svn-id: http://biopieces.googlecode.com/svn/trunk@2271 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/uclust_seq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' -- 2.39.2