X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fuclust_seq;h=5b162c414c2cdb249b4c2a518d1ca61062205e41;hb=ea737d66bd9dbc2f134c0809f026239ad4caf473;hp=5a6d0ef901a1f9cb298b324106c568c721a50b1d;hpb=31c64ec40cca2f80c424068b69327832be625e52;p=biopieces.git 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'