simple
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Mon, 18 Apr 2011 21:53:18 +0000 (21:53 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Mon, 18 Apr 2011 21:53:18 +0000 (21:53 +0000)
forester/ruby/evoruby/lib/evo/apps/taxonomy_processor.rb

index d688844..6abfa85 100644 (file)
@@ -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 )