require_relative '../../macroape' require 'shellwords' module Macroape module CLI module AlignMotifs def self.main(argv) doc = <<-EOS.strip_doc Align motifs tool. It takes motifs and builds alignment of each motif to the first (leader) motif. Output has format: pwm_file_1 shift_1 orientation_1 pwm_file_2 shift_2 orientation_2 pwm_file_3 shift_3 orientation_3 Usage: #{run_tool_cmd} [options] ... or ls rest_pms/*.pm | #{run_tool_cmd} [options] or ls rest_pms/*.pm | #{run_tool_cmd} [options] Options: [-p ] [-d ] [--pcm] - treat the input file as Position Count Matrix. PCM-to-PWM transformation to be done internally. [--boundary lower|upper] Upper boundary (default) means that the obtained P-value is greater than or equal to the requested P-value [-b err $stderr.puts "\n#{err}\n#{err.backtrace.first(5).join("\n")}\n\nUse --help option for help\n\n#{doc}" end end end end