From: cmzmasek@gmail.com Date: Fri, 3 Apr 2015 01:23:33 +0000 (+0000) Subject: in progress X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=746ca0244a286709f8f466d4d1ecbf7abdba5a43;p=jalview.git in progress --- diff --git a/forester/ruby/evoruby/lib/evo/tool/phylogenies_decorator.rb b/forester/ruby/evoruby/lib/evo/tool/phylogenies_decorator.rb index d2a523f..c672b58 100644 --- a/forester/ruby/evoruby/lib/evo/tool/phylogenies_decorator.rb +++ b/forester/ruby/evoruby/lib/evo/tool/phylogenies_decorator.rb @@ -181,11 +181,11 @@ module Evoruby domains_mapfile_name = get_file( files, phylogeny_id, DOMAINS_MAPFILE_SUFFIX ) seqs_file_name = get_seq_file( files, phylogeny_id ) - begin - Util.check_file_for_readability( domains_mapfile_name ) - rescue ArgumentError - Util.fatal_error( PRG_NAME, 'failed to read from [#{domains_mapfile_name}]: ' + $! ) - end +# begin +# Util.check_file_for_readability( domains_mapfile_name ) +# rescue ArgumentError +# Util.fatal_error( PRG_NAME, 'failed to read from [#{domains_mapfile_name}]: ' + $! ) +# end begin Util.check_file_for_readability( ids_mapfile_name ) @@ -193,11 +193,11 @@ module Evoruby Util.fatal_error( PRG_NAME, 'failed to read from [#{ids_mapfile_name}]: ' + $! ) end - begin - Util.check_file_for_readability( seqs_file_name ) - rescue ArgumentError - Util.fatal_error( PRG_NAME, 'failed to read from [#{seqs_file_name }]: ' + $! ) - end +# begin +# Util.check_file_for_readability( seqs_file_name ) +# rescue ArgumentError +# Util.fatal_error( PRG_NAME, 'failed to read from [#{seqs_file_name }]: ' + $! ) +# end # cmd = decorator + # ' -t -p -f=m ' + phylogeny_file + ' ' + @@ -228,6 +228,16 @@ module Evoruby rescue Error Util.fatal_error( PRG_NAME, 'error: ' + $! ) end + + cmd = decorator + ' ' + DECORATOR_OPTIONS_SEQ_NAMES + ' ' + + '-f=n ' + TMP_FILE_2 + ' ' + + ids_mapfile_name + ' ' + outfile + puts cmd + begin + execute_cmd( cmd, log ) + rescue Error + Util.fatal_error( PRG_NAME, 'error: ' + $! ) + end File.delete( TMP_FILE_1 ) File.delete( TMP_FILE_2 )