blob: 301d28e494811528c6fee6de6322d4c9725e935a (
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
26
|
require 'rubygems'
require 'opentox-ruby'
require 'yaml'
@subjectid = nil
ds = YAML::load_file("../datasets_new_LOAEL.yaml")
#ds.keys.each { |dataset|
["LOAEL"].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 "-----------------"
}
|