#
#
+require 'fileutils'
module Evoruby
counter += 1
hmm_name = ""
+ id_norm = false
if input.downcase.end_with?( "_ni.fasta" )
hmm_name = input[ 0 .. input.length - 10 ]
elsif input.downcase.end_with?( ".fasta" )
+ id_norm = true
hmm_name = input[ 0 .. input.length - 7 ]
puts
puts "a. identifier normalization:"
run_command( cmd )
puts
+ 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}"
+ end
+
end
end