inprogress
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Wed, 4 Dec 2013 23:09:02 +0000 (23:09 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Wed, 4 Dec 2013 23:09:02 +0000 (23:09 +0000)
forester/ruby/evoruby/exe/run_phylo_pipeline_x.rb

index 8745f32..2836f02 100644 (file)
@@ -133,8 +133,8 @@ module Evoruby
         end
         puts
 
-
-        dsx_output = "#{hmm_name}/#{hmm_name}__#{hmm_name}__ee#{e_value_exp.to_s}_#{length}"
+        dsx_output_base = "#{hmm_name}__#{hmm_name}__ee#{e_value_exp.to_s}_#{length}"
+        dsx_output = hmm_name +"/" + dsx_output_base
         unless File.exist? dsx_output + ".fasta"
           puts "e. dsx:"
           cmd = "#{DSX} -d -e=1e-#{e_value_exp.to_s} -l=#{length} #{hmm_name} #{hmmscan_output} #{input} #{dsx_output}"
@@ -163,14 +163,14 @@ module Evoruby
         run_1 = false
         run_100 = false
 
-        unless File.exist? "#{msa_dir}/#{hmm_name}__#{hmm_name}__ee#{e_value_exp.to_s}_#{length}"
+        unless File.exist? "#{msa_dir}/#{dsx_output_base}"
           run_1 = true
-          FileUtils.cp "#{dsx_output}.fasta", "#{msa_dir}/#{hmm_name}__#{hmm_name}__ee#{e_value_exp.to_s}_#{length}"
+          FileUtils.cp "#{dsx_output}.fasta", "#{msa_dir}/#{dsx_output_base}"
         end
 
-        unless File.exist? "#{msa_100_dir}/#{hmm_name}__#{hmm_name}__ee#{e_value_exp.to_s}_#{length}"
+        unless File.exist? "#{msa_100_dir}/#{dsx_output_base}"
           run_100 = true
-          FileUtils.cp "#{dsx_output}.fasta", "#{msa_100_dir}/#{hmm_name}__#{hmm_name}__ee#{e_value_exp.to_s}_#{length}"
+          FileUtils.cp "#{dsx_output}.fasta", "#{msa_100_dir}/#{dsx_output_base}"
         end
 
         if File.exist?( TEMPLATE_FILE )