bio-rocker 1.1.10 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ROCker +19 -9
  3. data/lib/rocker.rb +1 -1
  4. metadata +14 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e05b58cc0291bee319fcc3b154922e9b258f0c8b
4
- data.tar.gz: d3780e512d02ef04c60696a01f8c736b61703707
3
+ metadata.gz: 85c453e6a8e2ced8f03b930ea696682b11a90c5c
4
+ data.tar.gz: 64e2894fdb38450bd3849168825d2a75cdac960f
5
5
  SHA512:
6
- metadata.gz: 12d2993d29fa3fb4bb42255b472eee9a3a15d281e9c6761c9b1a2173fe086a00c140031d311680e774441a94b93139397860f04973b055d67f751f9c53c0f8af
7
- data.tar.gz: c6025ff319794cd9fbc7b52f2a019bb5021fe0474b9536270d9eaf72385738db11d965676201d6440c1b6dceacfb851bb9f31e909c33d04e93f2308b2fc6cf01
6
+ metadata.gz: db06cca064320b559290ac7ecb5aad40e89bc4bab30cd69510e4f537b834d863ab4b7fbe64885790d181246a033fabfd6184667b2bb10841a00b5908c8addd91
7
+ data.tar.gz: 574a1ab17ec2fc44a7993eba843c193db2c8acb7ed56e52429436d2b9a03162f6c0f540d715eff73de2e145a85e7c76c6a1bd424d1d1e9a759d465eacea23a41
data/bin/ROCker CHANGED
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
- #
3
- # @author Luis M. Rodriguez-R <lmrodriguezr at gmail dot com>
4
- # @author Luis (Coto) Orellana
2
+
3
+ # @author Luis M. Rodriguez-R <lmrodriguezr at gmail dot com>
4
+ # @author Luis (Coto) Orellana
5
5
  # @license artistic license 2.0
6
- # @update Nov-25-2015
7
- #
6
+ # @update Mar-28-2016
8
7
 
9
8
  lib = File.expand_path("../lib", File.dirname(__FILE__))
10
9
  $:.push lib if Dir.exist? lib
@@ -26,8 +25,13 @@ $t = {
26
25
  "thresholds, and the hits.",
27
26
  "info" => "Display additional information about ROCker."
28
27
  }
29
- task = (ARGV.empty? ? "" : ARGV.shift).downcase
30
- ARGV << "-h" if ARGV.empty? and task != "info"
28
+
29
+ if %w[-V --version].include? ARGV.first
30
+ task = "info"
31
+ else
32
+ task = (ARGV.empty? ? "" : ARGV.shift).downcase
33
+ ARGV << "-h" if ARGV.empty? and task != "info"
34
+ end
31
35
 
32
36
  o = {}
33
37
  opts = OptionParser.new do |opt|
@@ -324,10 +328,14 @@ opts = OptionParser.new do |opt|
324
328
  opt.on("-q", "--quiet", "Run quietly."){ |v| o[:q]=true }
325
329
  opt.on("-d", "--debug",
326
330
  "Display debugging information."){ |v| o[:debug]=true }
327
- opt.on("-h", "--help", "Display this screen") do
331
+ opt.on("-h", "--help", "Display this screen.") do
328
332
  puts opt
329
333
  exit
330
334
  end
335
+ opt.on("-V", "--version","Display version.") do
336
+ puts "ROCker v" + ROCker.VERSION
337
+ exit
338
+ end
331
339
  opt.separator ""
332
340
  unless $t.include? task
333
341
  puts opt
@@ -336,6 +344,8 @@ opts = OptionParser.new do |opt|
336
344
  end
337
345
  opts.parse!
338
346
 
347
+ p ARGV
348
+
339
349
 
340
350
  #================================[ Main ]
341
351
  rocker = ROCker.new(o)
@@ -363,7 +373,7 @@ begin
363
373
  puts "For additional information and documentation, visit:"
364
374
  puts "http://enve-omics.ce.gatech.edu/rocker/"
365
375
  puts ""
366
- puts "For our list of curated models, visits:"
376
+ puts "For our list of curated models, visit:"
367
377
  puts "http://enve-omics.ce.gatech.edu/rocker/models"
368
378
  end
369
379
  rescue => err
@@ -10,7 +10,7 @@ require "rocker/rocdata"
10
10
 
11
11
  class ROCker
12
12
  #================================[ Class ]
13
- @@VERSION = "1.1.10"
13
+ @@VERSION = "1.1.11"
14
14
  @@CITATION = [
15
15
  "Orellana, Rodriguez-R, & Konstantinidis. Under review.",
16
16
  "Detecting and quantifying functional genes in short-read",
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.10
4
+ version: 1.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis (Coto) Orellana
@@ -15,28 +15,28 @@ dependencies:
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
51
50
  - 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
54
57
  - lib/rocker/genome-set.rb
55
58
  - 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
60
59
  - lib/rocker/step/build.rb
61
60
  - 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
- - lib/rocker/step/search.rb
64
+ - bin/ROCker
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.4.5.1
85
+ rubygems_version: 2.0.14
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: ROCker