opentox-ruby 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +674 -0
- data/README.rdoc +23 -0
- data/Rakefile +87 -0
- data/VERSION +1 -0
- data/bin/opentox-install-debian.sh +105 -0
- data/bin/opentox-install-ubuntu.sh +375 -0
- data/lib/algorithm.rb +82 -0
- data/lib/compound.rb +128 -0
- data/lib/config/config_ru.rb +51 -0
- data/lib/dataset.rb +226 -0
- data/lib/environment.rb +77 -0
- data/lib/helper.rb +26 -0
- data/lib/model.rb +143 -0
- data/lib/opentox.owl +809 -0
- data/lib/overwrite.rb +14 -0
- data/lib/rest_client_wrapper.rb +168 -0
- data/lib/spork.rb +83 -0
- data/lib/task.rb +176 -0
- data/lib/templates/config.yaml +41 -0
- data/lib/validation.rb +20 -0
- metadata +437 -0
data/lib/validation.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
module OpenTox
|
2
|
+
class Validation
|
3
|
+
|
4
|
+
attr_accessor :uri
|
5
|
+
|
6
|
+
def initialize(params)
|
7
|
+
@uri = OpenTox::RestClientWrapper.post(File.join(@@config[:services]["opentox-validation"],"/crossvalidation"),params,nil,false)
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.crossvalidation(params)
|
11
|
+
params[:uri] = File.join(@@config[:services]['opentox-validation'], "crossvalidation")
|
12
|
+
params[:num_folds] = 10 unless params[:num_folds]
|
13
|
+
params[:random_seed] = 2 unless params[:random_seed]
|
14
|
+
params[:stratified] = false unless params[:stratified]
|
15
|
+
OpenTox::Validation.new(params)
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
metadata
ADDED
@@ -0,0 +1,437 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: opentox-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Christoph Helma, Martin Guetlein, Andreas Maunz, Micha Rautenberg, David Vorgrimmler
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-11-24 00:00:00 +01:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: sinatra
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: emk-sinatra-url-for
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: sinatra-respond_to
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
type: :runtime
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: sinatra-static-assets
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
type: :runtime
|
76
|
+
version_requirements: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: rest-client
|
79
|
+
prerelease: false
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
89
|
+
type: :runtime
|
90
|
+
version_requirements: *id005
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: rack
|
93
|
+
prerelease: false
|
94
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 3
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
103
|
+
type: :runtime
|
104
|
+
version_requirements: *id006
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: rack-contrib
|
107
|
+
prerelease: false
|
108
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
hash: 3
|
114
|
+
segments:
|
115
|
+
- 0
|
116
|
+
version: "0"
|
117
|
+
type: :runtime
|
118
|
+
version_requirements: *id007
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: rack-flash
|
121
|
+
prerelease: false
|
122
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
hash: 3
|
128
|
+
segments:
|
129
|
+
- 0
|
130
|
+
version: "0"
|
131
|
+
type: :runtime
|
132
|
+
version_requirements: *id008
|
133
|
+
- !ruby/object:Gem::Dependency
|
134
|
+
name: nokogiri
|
135
|
+
prerelease: false
|
136
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
hash: 3
|
142
|
+
segments:
|
143
|
+
- 0
|
144
|
+
version: "0"
|
145
|
+
type: :runtime
|
146
|
+
version_requirements: *id009
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: rubyzip
|
149
|
+
prerelease: false
|
150
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
hash: 3
|
156
|
+
segments:
|
157
|
+
- 0
|
158
|
+
version: "0"
|
159
|
+
type: :runtime
|
160
|
+
version_requirements: *id010
|
161
|
+
- !ruby/object:Gem::Dependency
|
162
|
+
name: roo
|
163
|
+
prerelease: false
|
164
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
165
|
+
none: false
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
hash: 3
|
170
|
+
segments:
|
171
|
+
- 0
|
172
|
+
version: "0"
|
173
|
+
type: :runtime
|
174
|
+
version_requirements: *id011
|
175
|
+
- !ruby/object:Gem::Dependency
|
176
|
+
name: spreadsheet
|
177
|
+
prerelease: false
|
178
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
179
|
+
none: false
|
180
|
+
requirements:
|
181
|
+
- - ">="
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
hash: 3
|
184
|
+
segments:
|
185
|
+
- 0
|
186
|
+
version: "0"
|
187
|
+
type: :runtime
|
188
|
+
version_requirements: *id012
|
189
|
+
- !ruby/object:Gem::Dependency
|
190
|
+
name: google-spreadsheet-ruby
|
191
|
+
prerelease: false
|
192
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ">="
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
hash: 3
|
198
|
+
segments:
|
199
|
+
- 0
|
200
|
+
version: "0"
|
201
|
+
type: :runtime
|
202
|
+
version_requirements: *id013
|
203
|
+
- !ruby/object:Gem::Dependency
|
204
|
+
name: tmail
|
205
|
+
prerelease: false
|
206
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
207
|
+
none: false
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
hash: 3
|
212
|
+
segments:
|
213
|
+
- 0
|
214
|
+
version: "0"
|
215
|
+
type: :runtime
|
216
|
+
version_requirements: *id014
|
217
|
+
- !ruby/object:Gem::Dependency
|
218
|
+
name: rinruby
|
219
|
+
prerelease: false
|
220
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
221
|
+
none: false
|
222
|
+
requirements:
|
223
|
+
- - ">="
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
hash: 3
|
226
|
+
segments:
|
227
|
+
- 0
|
228
|
+
version: "0"
|
229
|
+
type: :runtime
|
230
|
+
version_requirements: *id015
|
231
|
+
- !ruby/object:Gem::Dependency
|
232
|
+
name: rjb
|
233
|
+
prerelease: false
|
234
|
+
requirement: &id016 !ruby/object:Gem::Requirement
|
235
|
+
none: false
|
236
|
+
requirements:
|
237
|
+
- - ">="
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
hash: 3
|
240
|
+
segments:
|
241
|
+
- 0
|
242
|
+
version: "0"
|
243
|
+
type: :runtime
|
244
|
+
version_requirements: *id016
|
245
|
+
- !ruby/object:Gem::Dependency
|
246
|
+
name: dm-core
|
247
|
+
prerelease: false
|
248
|
+
requirement: &id017 !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
250
|
+
requirements:
|
251
|
+
- - ">="
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
hash: 1
|
254
|
+
segments:
|
255
|
+
- 1
|
256
|
+
version: "1"
|
257
|
+
type: :runtime
|
258
|
+
version_requirements: *id017
|
259
|
+
- !ruby/object:Gem::Dependency
|
260
|
+
name: dm-serializer
|
261
|
+
prerelease: false
|
262
|
+
requirement: &id018 !ruby/object:Gem::Requirement
|
263
|
+
none: false
|
264
|
+
requirements:
|
265
|
+
- - ">="
|
266
|
+
- !ruby/object:Gem::Version
|
267
|
+
hash: 1
|
268
|
+
segments:
|
269
|
+
- 1
|
270
|
+
version: "1"
|
271
|
+
type: :runtime
|
272
|
+
version_requirements: *id018
|
273
|
+
- !ruby/object:Gem::Dependency
|
274
|
+
name: dm-timestamps
|
275
|
+
prerelease: false
|
276
|
+
requirement: &id019 !ruby/object:Gem::Requirement
|
277
|
+
none: false
|
278
|
+
requirements:
|
279
|
+
- - ">="
|
280
|
+
- !ruby/object:Gem::Version
|
281
|
+
hash: 1
|
282
|
+
segments:
|
283
|
+
- 1
|
284
|
+
version: "1"
|
285
|
+
type: :runtime
|
286
|
+
version_requirements: *id019
|
287
|
+
- !ruby/object:Gem::Dependency
|
288
|
+
name: dm-types
|
289
|
+
prerelease: false
|
290
|
+
requirement: &id020 !ruby/object:Gem::Requirement
|
291
|
+
none: false
|
292
|
+
requirements:
|
293
|
+
- - ">="
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
hash: 1
|
296
|
+
segments:
|
297
|
+
- 1
|
298
|
+
version: "1"
|
299
|
+
type: :runtime
|
300
|
+
version_requirements: *id020
|
301
|
+
- !ruby/object:Gem::Dependency
|
302
|
+
name: dm-migrations
|
303
|
+
prerelease: false
|
304
|
+
requirement: &id021 !ruby/object:Gem::Requirement
|
305
|
+
none: false
|
306
|
+
requirements:
|
307
|
+
- - ">="
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
hash: 1
|
310
|
+
segments:
|
311
|
+
- 1
|
312
|
+
version: "1"
|
313
|
+
type: :runtime
|
314
|
+
version_requirements: *id021
|
315
|
+
- !ruby/object:Gem::Dependency
|
316
|
+
name: dm-mysql-adapter
|
317
|
+
prerelease: false
|
318
|
+
requirement: &id022 !ruby/object:Gem::Requirement
|
319
|
+
none: false
|
320
|
+
requirements:
|
321
|
+
- - ">="
|
322
|
+
- !ruby/object:Gem::Version
|
323
|
+
hash: 1
|
324
|
+
segments:
|
325
|
+
- 1
|
326
|
+
version: "1"
|
327
|
+
type: :runtime
|
328
|
+
version_requirements: *id022
|
329
|
+
- !ruby/object:Gem::Dependency
|
330
|
+
name: dm-validations
|
331
|
+
prerelease: false
|
332
|
+
requirement: &id023 !ruby/object:Gem::Requirement
|
333
|
+
none: false
|
334
|
+
requirements:
|
335
|
+
- - ">="
|
336
|
+
- !ruby/object:Gem::Version
|
337
|
+
hash: 1
|
338
|
+
segments:
|
339
|
+
- 1
|
340
|
+
version: "1"
|
341
|
+
type: :runtime
|
342
|
+
version_requirements: *id023
|
343
|
+
- !ruby/object:Gem::Dependency
|
344
|
+
name: haml
|
345
|
+
prerelease: false
|
346
|
+
requirement: &id024 !ruby/object:Gem::Requirement
|
347
|
+
none: false
|
348
|
+
requirements:
|
349
|
+
- - ">="
|
350
|
+
- !ruby/object:Gem::Version
|
351
|
+
hash: 5
|
352
|
+
segments:
|
353
|
+
- 3
|
354
|
+
version: "3"
|
355
|
+
type: :runtime
|
356
|
+
version_requirements: *id024
|
357
|
+
- !ruby/object:Gem::Dependency
|
358
|
+
name: jeweler
|
359
|
+
prerelease: false
|
360
|
+
requirement: &id025 !ruby/object:Gem::Requirement
|
361
|
+
none: false
|
362
|
+
requirements:
|
363
|
+
- - ">="
|
364
|
+
- !ruby/object:Gem::Version
|
365
|
+
hash: 3
|
366
|
+
segments:
|
367
|
+
- 0
|
368
|
+
version: "0"
|
369
|
+
type: :development
|
370
|
+
version_requirements: *id025
|
371
|
+
description: Ruby wrapper for the OpenTox REST API (http://www.opentox.org)
|
372
|
+
email: helma@in-silico.ch
|
373
|
+
executables:
|
374
|
+
- opentox-install-ubuntu.sh
|
375
|
+
- opentox-install-debian.sh
|
376
|
+
extensions: []
|
377
|
+
|
378
|
+
extra_rdoc_files:
|
379
|
+
- LICENSE
|
380
|
+
- README.rdoc
|
381
|
+
files:
|
382
|
+
- LICENSE
|
383
|
+
- README.rdoc
|
384
|
+
- Rakefile
|
385
|
+
- VERSION
|
386
|
+
- bin/opentox-install-debian.sh
|
387
|
+
- bin/opentox-install-ubuntu.sh
|
388
|
+
- lib/algorithm.rb
|
389
|
+
- lib/compound.rb
|
390
|
+
- lib/config/config_ru.rb
|
391
|
+
- lib/dataset.rb
|
392
|
+
- lib/environment.rb
|
393
|
+
- lib/helper.rb
|
394
|
+
- lib/model.rb
|
395
|
+
- lib/opentox.owl
|
396
|
+
- lib/overwrite.rb
|
397
|
+
- lib/rest_client_wrapper.rb
|
398
|
+
- lib/spork.rb
|
399
|
+
- lib/task.rb
|
400
|
+
- lib/templates/config.yaml
|
401
|
+
- lib/validation.rb
|
402
|
+
has_rdoc: true
|
403
|
+
homepage: http://github.com/helma/opentox-ruby-api-wrapper
|
404
|
+
licenses: []
|
405
|
+
|
406
|
+
post_install_message:
|
407
|
+
rdoc_options:
|
408
|
+
- --charset=UTF-8
|
409
|
+
require_paths:
|
410
|
+
- lib
|
411
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
412
|
+
none: false
|
413
|
+
requirements:
|
414
|
+
- - ">="
|
415
|
+
- !ruby/object:Gem::Version
|
416
|
+
hash: 3
|
417
|
+
segments:
|
418
|
+
- 0
|
419
|
+
version: "0"
|
420
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
421
|
+
none: false
|
422
|
+
requirements:
|
423
|
+
- - ">="
|
424
|
+
- !ruby/object:Gem::Version
|
425
|
+
hash: 3
|
426
|
+
segments:
|
427
|
+
- 0
|
428
|
+
version: "0"
|
429
|
+
requirements: []
|
430
|
+
|
431
|
+
rubyforge_project:
|
432
|
+
rubygems_version: 1.3.7
|
433
|
+
signing_key:
|
434
|
+
specification_version: 3
|
435
|
+
summary: Ruby wrapper for the OpenTox REST API
|
436
|
+
test_files: []
|
437
|
+
|