Skip to content

Commit

Permalink
Minor layout
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Jul 19, 2018
1 parent 1311854 commit fa4e1cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/gemma-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#
# Copyright (C) 2017,2018 Pjotr Prins <[email protected]>

USAGE = "GEMMA wrapper example:
USAGE = "
GEMMA wrapper example:
Simple caching of K computation with
Expand Down Expand Up @@ -73,7 +74,7 @@ end
options = { show_help: false, source: 'https://github.com/genetics-statistics/gemma-wrapper', version: version+' (Pjotr Prins)', date: Time.now.to_s, gemma_command: gemma_command, cache_dir: Dir.tmpdir() }

opts = OptionParser.new do |o|
o.banner = "Usage: #{File.basename($0)} [options] -- [gemma-options]"
o.banner = "\nUsage: #{File.basename($0)} [options] -- [gemma-options]"

o.on('--permutate n', Integer, 'Permutate by shuffling phenotypes') do |lst|
options[:permutate] = lst
Expand Down Expand Up @@ -176,7 +177,7 @@ info.call GEMMA_K_BANNER
# Check gemma version
GEMMA_COMMAND=options[:gemma_command]
gemma_version_header = `#{GEMMA_COMMAND}`.split("\n").grep(/GEMMA|Version/)[0].strip
info.call "Using GEMMA ",gemma_version_header,"\n"
info.call "Using ",gemma_version_header,"\n"
gemma_version = gemma_version_header.split(/[,\s]+/)[1]
v_version, v_major, v_minor = gemma_version.split(".")
info.call "Found #{gemma_version}, comparing against expected v0.#{GEMMA_V_MAJOR}.#{GEMMA_V_MINOR}"
Expand Down

0 comments on commit fa4e1cf

Please sign in to comment.