From 8a9945e9465d0a8aa89d880b16c5a3781808cde9 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Mon, 18 Apr 2011 21:53:18 +0000 Subject: [PATCH] simple --- forester/ruby/evoruby/lib/evo/apps/taxonomy_processor.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 ) -- 1.7.10.2