inprogress
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Sat, 9 Nov 2013 05:39:28 +0000 (05:39 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Sat, 9 Nov 2013 05:39:28 +0000 (05:39 +0000)
forester/ruby/evoruby/exe/run_phylo_pipeline_x.rb

index 7a30ef5..0117b6a 100644 (file)
@@ -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