lederhosen 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,9 +12,10 @@ module Lederhosen
12
12
  method_option :output, :type => :string, :required => true
13
13
  method_option :identity, :type => :numeric, :required => true
14
14
  method_option :stepwords, :type => :numeric, :default => 8
15
- method_option :wordlen, :type => :numeric, :default => 8
16
- method_option :maxaccepts, :type => :numeric, :default => 1
17
- method_option :maxrejects, :type => :numeric, :default => 8
15
+ method_option :wordlen, :type => :numeric, :default => 8
16
+ method_option :maxaccepts, :type => :numeric, :default => 1
17
+ method_option :maxrejects, :type => :numeric, :default => 8
18
+ method_option :lib, :type => :string
18
19
 
19
20
  def cluster
20
21
  identity = options[:identity]
@@ -24,6 +25,7 @@ module Lederhosen
24
25
  maxaccepts = options[:maxaccepts]
25
26
  maxrejects = options[:maxrejects]
26
27
  wordlen = options[:wordlen]
28
+ lib = options[:lib]
27
29
 
28
30
  cmd = [
29
31
  'uclust',
@@ -34,7 +36,11 @@ module Lederhosen
34
36
  "--maxaccepts #{maxaccepts}",
35
37
  "--maxrejects #{maxrejects}",
36
38
  "--w #{wordlen}"
37
- ].join(' ')
39
+ ]
40
+
41
+ cmd << "--lib #{lib}" unless lib.nil?
42
+
43
+ cmd = cmd.join(' ')
38
44
 
39
45
  @shell.mute { run cmd }
40
46
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lederhosen
2
- VERSION = '0.1.9'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lederhosen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 9
10
- version: 0.1.9
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Austin G. Davis-Richardson