From: cmzmasek Date: Tue, 28 Mar 2017 01:08:24 +0000 (-0700) Subject: in progress... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4eab078381c4ad1ad2663629f7580eaf852a7c3a;p=jalview.git in progress... --- diff --git a/forester/ruby/evoruby/lib/evo/tool/taxonomy_processor.rb b/forester/ruby/evoruby/lib/evo/tool/taxonomy_processor.rb index b8f2cad..7729d54 100644 --- a/forester/ruby/evoruby/lib/evo/tool/taxonomy_processor.rb +++ b/forester/ruby/evoruby/lib/evo/tool/taxonomy_processor.rb @@ -19,7 +19,7 @@ module Evoruby class TaxonomyProcessor PRG_NAME = "tap" - PRG_DATE = "170214" + PRG_DATE = "170327" PRG_DESC = "Replacement of labels in multiple sequence files" PRG_VERSION = "2.004" WWW = "https://sites.google.com/site/cmzmasek/home/software/forester" @@ -181,10 +181,10 @@ module Evoruby new_desc = nil desc.gsub!( /\s+/, ' ' ) if extract_taxonomy - if desc =~/\s\[(([A-Z9][A-Z]{2}[A-Z0-9]{2})|RAT|PIG|PEA|CAP)\]/ + if desc =~/\s\[([A-Z0-9]{3,5})\]/ new_desc = counter.to_s( 16 ) + "_" + $1 else - Util.fatal_error( PRG_NAME, "could not get taxonomy from: " + desc ) + Util.fatal_error( PRG_NAME, "could not get taxonomy code from \"" + desc + "\"" ) end else new_desc = counter.to_s( 16 )