bio-rocker 1.1.11 → 1.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ROCker +3 -3
- data/lib/rocker.rb +3 -4
- data/lib/rocker/step/build.rb +6 -6
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77c08046b7d0b8f4528e38726c4b0681ce55a5c1
|
4
|
+
data.tar.gz: 8335d7484f0227f768a1cebdf0937bd8e7ef0513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a359c796f73a44fb008032786df546e640079d186751429c100e06b09cbc9141ecbe19d7937dc15ae7a3e1a2a02885fa6f08c42c22c97a131d48c471275f96e
|
7
|
+
data.tar.gz: 38ca17ae7f4cd04f85ea799851e23cb6f095a17a3475dfb298b8863f1be8dcc3701e2d9dac08e2f3f8bc5b5f88726904488c411b99d03d277b4ef11f6b5a3a05
|
data/bin/ROCker
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
|
3
3
|
# @author Luis M. Rodriguez-R <lmrodriguezr at gmail dot com>
|
4
4
|
# @author Luis (Coto) Orellana
|
5
|
-
# @license
|
6
|
-
# @update Mar-28-2016
|
5
|
+
# @license Artistic-2.0
|
7
6
|
|
8
7
|
lib = File.expand_path("../lib", File.dirname(__FILE__))
|
9
8
|
$:.push lib if Dir.exist? lib
|
@@ -147,7 +146,8 @@ opts = OptionParser.new do |opt|
|
|
147
146
|
end.reduce([],:+) ){ |v| o[:makedbcmd]=v }
|
148
147
|
opt.on("--simulator-cmd STR",
|
149
148
|
"Command calling simulator, where %1$s: binary, %2$s: input,",
|
150
|
-
"%3$s: seq. depth (X), %4$d: read len., %5$s: output
|
149
|
+
"%3$s: seq. depth (X), %4$d: read len., %5$s: output file, " +
|
150
|
+
"%6$s: output dir.",
|
151
151
|
*ROCker.default(:simulatorcmd).keys.map do |k|
|
152
152
|
["By default if --simulator #{k}:", "'" +
|
153
153
|
ROCker.default(:simulatorcmd)[k] + "'"]
|
data/lib/rocker.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# @author Luis M. Rodriguez-R <lmrodriguezr at gmail dot com>
|
3
3
|
# @author Luis (Coto) Orellana
|
4
|
-
# @license
|
5
|
-
# @update Dec-01-2015
|
4
|
+
# @license Artistic-2.0
|
6
5
|
#
|
7
6
|
|
8
7
|
require "rocker/blasthit"
|
@@ -10,13 +9,13 @@ require "rocker/rocdata"
|
|
10
9
|
|
11
10
|
class ROCker
|
12
11
|
#================================[ Class ]
|
13
|
-
@@VERSION = "1.1.
|
12
|
+
@@VERSION = "1.1.12"
|
14
13
|
@@CITATION = [
|
15
14
|
"Orellana, Rodriguez-R, & Konstantinidis. Under review.",
|
16
15
|
"Detecting and quantifying functional genes in short-read",
|
17
16
|
"metagenomic datasets: method development and application",
|
18
17
|
"to the nitrogen cycle genes."]
|
19
|
-
@@DATE = "
|
18
|
+
@@DATE = "2016-05-17"
|
20
19
|
@@DEFAULTS = {
|
21
20
|
# General
|
22
21
|
q: false, r: "R", nucl: false, debug: false, thr: 2, search: :blast,
|
data/lib/rocker/step/build.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
#
|
2
|
-
# @author
|
3
|
-
# @author
|
4
|
-
# @license
|
5
|
-
# @update Dec-01-2015
|
2
|
+
# @author Luis M. Rodriguez-R <lmrodriguezr at gmail dot com>
|
3
|
+
# @author Luis (Coto) Orellana
|
4
|
+
# @license Artistic-2.0
|
6
5
|
#
|
7
6
|
|
8
7
|
require "json"
|
@@ -19,7 +18,7 @@ class ROCker
|
|
19
18
|
simulatorbin:{grinder:"grinder"},
|
20
19
|
simulatorcmd:{grinder:"%1$s -reference_file \"%2$s\" -cf \"%3$f\" " +
|
21
20
|
"-dc '-~*NnKkMmRrYySsWwBbVvHhDdXx' -md uniform 0.1 -mr 95 5 " +
|
22
|
-
"-rd %4$d uniform 5 -base_name \"%5$s\""},
|
21
|
+
"-rd %4$d uniform 5 -base_name \"%5$s\" -output_dir \"%6$s\""},
|
23
22
|
alignerbin:{muscle:"muscle", clustalo:"clustalo"},
|
24
23
|
alignercmd:{muscle:"%1$s -in \"%2$s\" -out \"%3$s\" -quiet",
|
25
24
|
clustalo:"%1$s -i \"%2$s\" -o \"%3$s\" --threads=%4$d --force"}
|
@@ -303,10 +302,11 @@ class ROCker
|
|
303
302
|
|
304
303
|
# Run simulator (except if the temporal file is already
|
305
304
|
# there and can be reused)
|
305
|
+
ofile = "#{@o[:baseout]}.mg.tmp.#{thr_i.to_s}"
|
306
306
|
bash sprintf(@o[:simulatorcmd], @o[:simulatorbin],
|
307
307
|
"#{@o[:baseout]}.src.fasta.#{thr_i.to_s}",
|
308
308
|
@o[:seqdepth]*@o[:readlen].to_f, @o[:readlen],
|
309
|
-
|
309
|
+
File.basename(ofile), File.dirname(ofile)) unless
|
310
310
|
@o[:reuse] and
|
311
311
|
File.size? @o[:baseout] +
|
312
312
|
".mg.tmp.#{thr_i.to_s}-reads.fa"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-rocker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis (Coto) Orellana
|
@@ -9,34 +9,34 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-05-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.7'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '1.7'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: json
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '1.8'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '1.8'
|
42
42
|
description: Detecting and quantifying functional genes in short-read metagenomic
|
@@ -47,21 +47,21 @@ executables:
|
|
47
47
|
extensions: []
|
48
48
|
extra_rdoc_files: []
|
49
49
|
files:
|
50
|
+
- bin/ROCker
|
50
51
|
- lib/rocker.rb
|
51
|
-
- lib/rocker/sequence.rb
|
52
52
|
- lib/rocker/alignment.rb
|
53
53
|
- lib/rocker/blasthit.rb
|
54
|
-
- lib/rocker/rocwindow.rb
|
55
|
-
- lib/rocker/rocdata.rb
|
56
|
-
- lib/rocker/rinterface.rb
|
57
54
|
- lib/rocker/genome-set.rb
|
58
55
|
- lib/rocker/protein-set.rb
|
56
|
+
- lib/rocker/rinterface.rb
|
57
|
+
- lib/rocker/rocdata.rb
|
58
|
+
- lib/rocker/rocwindow.rb
|
59
|
+
- lib/rocker/sequence.rb
|
59
60
|
- lib/rocker/step/build.rb
|
60
61
|
- lib/rocker/step/compile.rb
|
61
|
-
- lib/rocker/step/search.rb
|
62
62
|
- lib/rocker/step/filter.rb
|
63
63
|
- lib/rocker/step/plot.rb
|
64
|
-
-
|
64
|
+
- lib/rocker/step/search.rb
|
65
65
|
homepage: http://enve-omics.ce.gatech.edu/rocker
|
66
66
|
licenses:
|
67
67
|
- artistic 2.0
|
@@ -72,17 +72,17 @@ require_paths:
|
|
72
72
|
- lib
|
73
73
|
required_ruby_version: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '2.0'
|
78
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.5.1
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: ROCker
|