lederhosen 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lederhosen.gemspec +2 -2
- data/lib/lederhosen/tasks/cluster.rb +3 -0
- data/lib/lederhosen/version.rb +1 -1
- data/spec/cli_spec.rb +6 -0
- metadata +4 -4
data/lederhosen.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "lederhosen"
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Austin G. Davis-Richardson"]
|
12
|
-
s.date = "2012-09-
|
12
|
+
s.date = "2012-09-17"
|
13
13
|
s.description = "Various tools for OTU clustering"
|
14
14
|
s.email = "harekrishna@gmail.com"
|
15
15
|
s.executables = ["lederhosen"]
|
@@ -16,6 +16,7 @@ module Lederhosen
|
|
16
16
|
method_option :maxaccepts, :type => :numeric, :default => 1
|
17
17
|
method_option :maxrejects, :type => :numeric, :default => 8
|
18
18
|
method_option :lib, :type => :string
|
19
|
+
method_option :libonly, :type => :boolean, :default => false
|
19
20
|
|
20
21
|
def cluster
|
21
22
|
identity = options[:identity]
|
@@ -26,6 +27,7 @@ module Lederhosen
|
|
26
27
|
maxrejects = options[:maxrejects]
|
27
28
|
wordlen = options[:wordlen]
|
28
29
|
lib = options[:lib]
|
30
|
+
libonly = options[:libonly]
|
29
31
|
|
30
32
|
ohai "clustering #{input}, saving to #{output}"
|
31
33
|
|
@@ -45,6 +47,7 @@ module Lederhosen
|
|
45
47
|
]
|
46
48
|
|
47
49
|
cmd << "--lib #{lib}" unless lib.nil?
|
50
|
+
cmd << "--libonly" if libonly == true
|
48
51
|
|
49
52
|
cmd = cmd.join(' ')
|
50
53
|
|
data/lib/lederhosen/version.rb
CHANGED
data/spec/cli_spec.rb
CHANGED
@@ -22,6 +22,12 @@ describe Lederhosen::CLI do
|
|
22
22
|
$?.success?.should be_true
|
23
23
|
end
|
24
24
|
|
25
|
+
it 'should support libonly clustering (w/ maxaccepts and maxrejects too)' do
|
26
|
+
# clustering reads against themselves because there is no reference database
|
27
|
+
# included in specs/data
|
28
|
+
`./bin/lederhosen cluster --input=#{$test_dir}/joined.fasta --output=#{$test_dir}/joined.libonly.uc --lib=#{$test_dir}/joined.fasta --libonly --identity 0.95 --maxaccepts 500 --maxrejects 12`
|
29
|
+
end
|
30
|
+
|
25
31
|
it 'should sort reads' do
|
26
32
|
`./bin/lederhosen sort --input=#{$test_dir}/joined.fasta --output=#{$test_dir}/sorted.fasta`
|
27
33
|
$?.success?.should be_true
|
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:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 7
|
10
|
+
version: 0.5.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Austin G. Davis-Richardson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-09-
|
18
|
+
date: 2012-09-17 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|