sequenceserver 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sequenceserver might be problematic. Click here for more details.

data/bin/sequenceserver CHANGED
@@ -5,28 +5,73 @@ require 'bundler/setup'
5
5
  require 'optparse'
6
6
  require 'sequenceserver'
7
7
 
8
- # display name for tools like `ps`
9
- $PROGRAM_NAME = 'sequenceserver'
10
-
11
8
  # e.g:
12
9
  # sequenceserver --config .sequenceserver.conf format_database
13
10
  begin
14
11
  # parse command line till first non-option, removing parsed options from ARGV
15
12
  OptionParser.new do |opts|
13
+ opts.banner =<<BANNER
14
+
15
+ SUMMARY
16
+
17
+ custom, local, BLAST server
18
+
19
+ USAGE
20
+
21
+ sequenceserver [options] [subcommand] [subcommand's options]
22
+
23
+ Example:
24
+
25
+ # launch SequenceServer with the given config file
26
+ $ sequenceserver --config ~/.sequenceserver.ants.conf
27
+
28
+ # use the bundled database formatter utility to prepare databases for use
29
+ # with SequenceServer
30
+ $ sequenceserver format-databases
31
+
32
+ DESCRIPTION
33
+
34
+ SequenceServer lets you rapidly set up a BLAST+ server with an intuitive user
35
+ interface for use locally or over the web.
36
+
37
+ SUB-COMMANDS
38
+
39
+ format-databases:
40
+ prepare BLAST databases for use with SequenceServer
41
+
42
+ Run '#{$0} format-databases -h' for help.
43
+
44
+ OPTIONS
45
+
46
+ BANNER
16
47
  opts.on('-c', '--config CONFIG_FILE', 'Use the given configuration file') do |config_file|
17
48
  SequenceServer::App.config_file = File.expand_path(config_file)
18
49
  end
19
50
  end.order!
20
51
 
21
52
  # of the remaining items in ARGV, the first one must be a subcommand
22
- case ARGV.shift
23
- when 'format_database'
24
- require 'sequenceserver/database_formatter'
25
- exit
53
+ subcommand = ARGV.shift
54
+
55
+ if subcommand
56
+ # process subcommands now
57
+
58
+ case subcommand
59
+ when 'format-databases'
60
+ require 'sequenceserver/database_formatter'
61
+ exit
62
+ else
63
+ puts "invalid subcommand: #{subcommand}"
64
+ puts "Run '#{$0} -h' for help with command line options."
65
+ exit
66
+ end
26
67
  end
27
68
  rescue OptionParser::InvalidOption =>e
28
69
  puts e
70
+ puts "Run '#{$0} -h' for help with command line options."
29
71
  exit
30
72
  end
31
73
 
74
+ # display name for tools like `ps`
75
+ $PROGRAM_NAME = 'sequenceserver'
76
+
32
77
  SequenceServer::App.run!
@@ -152,12 +152,12 @@ SUMMARY
152
152
 
153
153
  USAGE
154
154
 
155
- sequenceserver format_database [--verbose] [blast_database_directory]
155
+ sequenceserver format-databases [--verbose] [blast_database_directory]
156
156
 
157
157
  Example:
158
158
 
159
- $ sequenceserver format_database ~/db # explicitly specify a database directory
160
- $ sequenceserver format_database # use the database directory in config.yml
159
+ $ sequenceserver format-databases ~/db # explicitly specify a database directory
160
+ $ sequenceserver format-databases # use the database directory in config.yml
161
161
 
162
162
  DESCRIPTION
163
163
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  # meta
3
3
  s.name = 'sequenceserver'
4
- s.version = '0.7.3'
4
+ s.version = '0.7.4'
5
5
  s.authors = ['Anurag Priyam', 'Ben J Woodcroft', 'Yannick Wurm']
6
6
  s.email = 'anurag08priyam@gmail.com'
7
7
  s.homepage = 'http://sequenceserver.com'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequenceserver
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 3
10
- version: 0.7.3
9
+ - 4
10
+ version: 0.7.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anurag Priyam
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-12-18 00:00:00 Z
20
+ date: 2011-12-23 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: bundler