blob: c2ff6aa9e3140c9b6882e73eb61993bf7a6be3d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
require 'rubygems'
require 'opentox-ruby'
require 'yaml'
@subjectid = nil
ds = YAML::load_file("../datasets_new_LOAEL.yaml")
ds.keys.each { |dataset|
puts "----------------- next dataset -----------------"
["electronic,cpsa", "constitutional", "topological", "hybrid", "joelib"].each { |pc|
puts "#{dataset}, #{pc}"
args = {}
args[:pc_type] = pc
ds_uri = ds[dataset]["dataset"]
puts args.to_yaml
feature_ds = OpenTox::RestClientWrapper.post( File.join(ds_uri,"/pcdesc"), args )
puts "Result feature dataset:"
puts feature_ds
puts "--------"
}
puts "-----------------"
}
|