bacterial-annotator 0.8.4 → 0.8.5

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/bacterial-annotator +20 -8
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40d2f200654b6d1df08886ea7ba5f01d05e8d2b589043138fcb164067679dab4
4
- data.tar.gz: 33f9bdce9a193dadcc78a42d6e60a4b2b6d517d41c9a4020f5fe69a10c99c826
3
+ metadata.gz: da5221d8f00eb6042cc1b7ea5f99101dc9acb7120c7e2c8f85833e3a1d52045f
4
+ data.tar.gz: 2836e79ce4062db2cd8ae795cbdcfeba81a8dfcaa6c44bf4610d1a4da20e4786
5
5
  SHA512:
6
- metadata.gz: 883e0141905a3bcc49fe440cb22b4222343ddb6b2606cf4b8e6740796de16e631b46e4ebba0b6f313011c89a250fbc79a215f622b132475d923128da82d83a01
7
- data.tar.gz: 450052e5032a1e2a5aaf21d417e809f7e8e585aad61c681d8754d8d45354c1987cd3b43b3d632f74d9daa5c7877f32ee2993d231935327df4b35965673f04aa0
6
+ metadata.gz: 93f660143c5c67ed505c9cdd9ba6d41e70bc788e6578c0fb440de4519b60ca9b79297f2c149f6489a10b205ea3767e1f3649cc369dd7f1c4122843562200f179
7
+ data.tar.gz: 88e3aa0ed0a1f15cb27fe9ad61a216ba2bbd2cd0654c61f4105273eb041cfbfb07ae89e5f9e079178cdc81946b8c7bb73f38eefecc7bbd523858338bfafa4996
@@ -38,6 +38,8 @@ bacterial-annotator [annotate | compare] [OPTIONS]
38
38
 
39
39
  # Choose either to annotate a genome or compare several genome annotations
40
40
 
41
+ install Install the third parties dependencies
42
+
41
43
  identify [OPTIONS]
42
44
  .. see identify -h for OPTIONS
43
45
 
@@ -281,15 +283,9 @@ def parseOptions_identify
281
283
  end
282
284
 
283
285
 
286
+ def install_dep
284
287
 
285
-
286
- ########
287
- # MAIN #
288
- ########
289
-
290
- if ARGV.size >= 1
291
-
292
- ROOT = File.dirname(__FILE__)
288
+ # requirement ruby, ruby-dev, unzip
293
289
 
294
290
  # Check for 3rd party dependencies : Prodigal, Blat, MAFFT, ...
295
291
  system("ba_prodigal")
@@ -303,6 +299,18 @@ if ARGV.size >= 1
303
299
  system("ba_mash")
304
300
  system("ba_trnascan")
305
301
 
302
+ end
303
+
304
+
305
+
306
+ ########
307
+ # MAIN #
308
+ ########
309
+
310
+ if ARGV.size >= 1
311
+
312
+ ROOT = File.dirname(__FILE__)
313
+
306
314
  options = {}
307
315
 
308
316
  if ARGV[0] == "annotate"
@@ -310,6 +318,8 @@ if ARGV.size >= 1
310
318
  ARGV.shift
311
319
  options = parseOptions_annotate
312
320
 
321
+ install_dep
322
+
313
323
  if ! File.exist? ("#{ROOT}/blat.linux")
314
324
  puts "Exiting program because blat is missing"
315
325
  abort
@@ -351,6 +361,8 @@ if ARGV.size >= 1
351
361
  print_version
352
362
  abort
353
363
 
364
+ elsif ARGV[0] == "install"
365
+ install_dep
354
366
  else
355
367
  usage
356
368
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bacterial-annotator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Deraspe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-24 00:00:00.000000000 Z
11
+ date: 2018-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bio
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.7.6
129
+ rubygems_version: 2.7.7
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Bacterial Annotator