From: cmzmasek@gmail.com Date: Mon, 18 Apr 2011 21:53:18 +0000 (+0000) Subject: simple X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8a9945e9465d0a8aa89d880b16c5a3781808cde9;p=jalview.git simple --- diff --git a/forester/ruby/evoruby/lib/evo/apps/taxonomy_processor.rb b/forester/ruby/evoruby/lib/evo/apps/taxonomy_processor.rb index d688844..6abfa85 100644 --- a/forester/ruby/evoruby/lib/evo/apps/taxonomy_processor.rb +++ b/forester/ruby/evoruby/lib/evo/apps/taxonomy_processor.rb @@ -29,6 +29,8 @@ module Evoruby CONTACT = "phylosoft@gmail.com" WWW = "www.phylosoft.org" + SIMPLE = true + EXTRACT_TAXONOMY_OPTION = "t" def initialize() @@ -199,6 +201,8 @@ module Evoruby my_species = nil if desc =~ /^>?\s*\S{1,10}_([0-9A-Z]{3,5})/ new_desc = counter.to_s( 16 ) + "_" + $1 + elsif SIMPLE + new_desc = counter.to_s( 16 ) elsif extract_taxonomy if ( desc.count( "[" ) != desc.count( "]" ) ) Util.fatal_error( PRG_NAME, "illegal bracket count in: " + desc )