pat.write(@file_pattern)
end
-# def run
-# child_count = 0
-#
-# @files_fasta.each do |file|
-# if fork
-# Process.wait if ( child_count += 1 ) >= @cpus
-# else
-# command = command_compile(file)
-# system(command)
-# raise PatScanError, "Command failed: #{command}" unless $?.success?
-# exit
-# end
-# end
-# end
-
-# def run
-# child_count = 0
-#
-# @files_fasta.each do |file|
-# Thread.pass while child_count >= @cpus
-# child_count += 1
-#
-# Thread.new do
-# command = command_compile(file)
-# system(command)
-# raise PatScanError, "Command failed: #{command}" unless $?.success?
-# child_count -= 1
-# end
-# end
-# end
-
def run
child_count = 0
ch_mutex = Mutex.new