]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed name issue in uclust_seq
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 3 Dec 2013 11:42:43 +0000 (11:42 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 3 Dec 2013 11:42:43 +0000 (11:42 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@2271 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/uclust_seq

index 5a6d0ef901a1f9cb298b324106c568c721a50b1d..5b162c414c2cdb249b4c2a518d1ca61062205e41 100755 (executable)
@@ -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'