From f848d1835cc927b551aed4f8bcbe70bf81d12627 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Sat, 9 Nov 2013 05:39:28 +0000 Subject: [PATCH] inprogress --- forester/ruby/evoruby/exe/run_phylo_pipeline_x.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forester/ruby/evoruby/exe/run_phylo_pipeline_x.rb b/forester/ruby/evoruby/exe/run_phylo_pipeline_x.rb index 7a30ef5..0117b6a 100644 --- a/forester/ruby/evoruby/exe/run_phylo_pipeline_x.rb +++ b/forester/ruby/evoruby/exe/run_phylo_pipeline_x.rb @@ -68,6 +68,7 @@ module Evoruby hmm_name = "" id_norm = false + orig_input = input if input.downcase.end_with?( "_ni.fasta" ) hmm_name = input[ 0 .. input.length - 10 ] @@ -109,7 +110,7 @@ module Evoruby if id_norm FileUtils.mv "#{hmm_name}_ni.fasta", "#{hmm_name}/#{hmm_name}_ni.fasta" FileUtils.mv "#{hmm_name}.nim", "#{hmm_name}/#{hmm_name}.nim" - FileUtils.cp input, "#{hmm_name}/#{input}" + FileUtils.cp orig_input, "#{hmm_name}/#{orig_input}" end end -- 1.7.10.2