X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fruby%2Fevoruby%2Flib%2Fevo%2Ftool%2Fphylogeny_factory.rb;h=18d396e25eedef4828a497d341de057643ff0374;hb=0d00b87d870a8a198772f28c87ed3b9a39666c4d;hp=1992783cfcec78ed2488bfa3a686ed500f89d84b;hpb=eac0e41b0814a58147a0311135b20803d8cd9c03;p=jalview.git diff --git a/forester/ruby/evoruby/lib/evo/tool/phylogeny_factory.rb b/forester/ruby/evoruby/lib/evo/tool/phylogeny_factory.rb index 1992783..18d396e 100644 --- a/forester/ruby/evoruby/lib/evo/tool/phylogeny_factory.rb +++ b/forester/ruby/evoruby/lib/evo/tool/phylogeny_factory.rb @@ -39,7 +39,7 @@ module Evoruby RSL = 'RSL' HMM = 'HMM' - PHYLO_PL = 'PHYLO_PL' + PHYLO_OPT = 'PHYLO_OPT' OPTION_OPEN = '%[' OPTION_CLOSE = ']%' @@ -140,7 +140,7 @@ module Evoruby elsif ( line =~ /^%\s*(\S+)\s*=\s*(\S+)/ ) key = $1 value = $2 - if key == PHYLO_PL + if key == PHYLO_OPT value = update_phylo_pl_options( value, bootstraps ) end options[ key ] = value @@ -264,16 +264,16 @@ module Evoruby end def update_phylo_pl_options( phylo_pl_options, bootstraps ) - opts = phylo_pl_options + #opts = phylo_pl_options puts - puts "opts: " + opts - unless opts =~ /B\d/ - opts = 'B' + bootstraps.to_s + opts + puts "opts: " + phylo_pl_options + unless phylo_pl_options =~ /B\d/ + phylo_pl_options = 'B' + bootstraps.to_s + phylo_pl_options end - opts = '-' + opts + phylo_pl_options = '-' + phylo_pl_options puts - puts "new opts: " + opts - opts + puts "new opts: " + phylo_pl_options + phylo_pl_options end def subst_min_length( command, id, min_lengths )