Class: OpenTox::Algorithm::Generic
- Inherits:
-
Object
- Object
- OpenTox::Algorithm::Generic
- Includes:
- OpenTox::Algorithm
- Defined in:
- lib/algorithm.rb
Overview
Generic Algorithm class, should work with all OpenTox webservices
Instance Attribute Summary
Attributes included from OpenTox
Class Method Summary collapse
-
.find(uri, subjectid = nil) ⇒ OpenTox::Algorithm::Generic
Find Generic Opentox Algorithm via URI, and loads metadata, could raise NotFound/NotAuthorized error.
Methods included from OpenTox::Algorithm
effect, gauss, get_cdk_descriptors, get_jl_descriptors, get_ob_descriptors, isnull_or_singular?, load_ds_csv, min_frequency, numeric?, pc_descriptors, #run, sum_size, #to_rdfxml, zero_variance?
Methods included from OpenTox
#add_metadata, all, #delete, #initialize, #load_metadata, sign_in, text_to_html, #to_rdfxml
Class Method Details
.find(uri, subjectid = nil) ⇒ OpenTox::Algorithm::Generic
Find Generic Opentox Algorithm via URI, and loads metadata, could raise NotFound/NotAuthorized error
42 43 44 45 46 47 48 |
# File 'lib/algorithm.rb', line 42 def self.find(uri, subjectid=nil) return nil unless uri alg = Generic.new(uri) alg.( subjectid ) raise "cannot load algorithm metadata" if alg.==nil or alg..size==0 alg end |