summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
blob: a32a4623f1afe2ceb528c1c416c595aaab4e5cf7 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
module OpenTox
	module Algorithm 

		class Fminer #< OpenTox
			include Owl

			def initialize
				super
				self.uri = File.join(@@config[:services]["opentox-algorithm"],'fminer')
				self.title = "fminer"
				self.source = "http://github.com/amaunz/libfminer"
				self.parameters = {
					"Dataset URI" => { :scope => "mandatory", :value => "dataset_uri" },
					"Feature URI for dependent variable" => { :scope => "mandatory", :value => "feature_uri" }
				}
			end
		end

		class Lazar #< OpenTox
			include Owl

			def initialize
				super
				self.uri = File.join(@@config[:services]["opentox-algorithm"],'lazar')
				self.title = "lazar"
				self.source = "http://github.com/helma/opentox-algorithm"
				self.parameters = {
					"Dataset URI" =>
						{ :scope => "mandatory", :value => "dataset_uri" },
					"Feature URI for dependent variable" =>
						{ :scope => "mandatory", :value => "feature_uri" },
					"Feature generation URI" =>
						{ :scope => "mandatory", :value => "feature_generation_uri" }
				}
			end
		end

	end
end