opentox-ruby 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
data/lib/algorithm.rb CHANGED
@@ -190,8 +190,7 @@ module OpenTox
190
190
  gram_matrix[i][i] = 1.0
191
191
  end
192
192
 
193
- LOGGER.debug gram_matrix.to_yaml
194
-
193
+ #LOGGER.debug gram_matrix.to_yaml
195
194
  @r = RinRuby.new(false,false) # global R instance leads to Socket errors after a large number of requests
196
195
  @r.eval "library('kernlab')" # this requires R package "kernlab" to be installed
197
196
  LOGGER.debug "Setting R data ..."
data/lib/dataset.rb CHANGED
@@ -165,7 +165,8 @@ module OpenTox
165
165
 
166
166
  # Detect feature type(s) in the dataset
167
167
  # @return [String] `classification", "regression", "mixed" or unknown`
168
- def feature_type
168
+ def feature_type(subjectid=nil)
169
+ load_features(subjectid)
169
170
  feature_types = @features.collect{|f,metadata| metadata[OT.isA]}.uniq
170
171
  if feature_types.size > 1
171
172
  "mixed"
data/lib/feature.rb CHANGED
@@ -2,6 +2,9 @@ module OpenTox
2
2
  class Feature
3
3
  include OpenTox
4
4
 
5
+ # Find a feature
6
+ # @param [String] uri Feature URI
7
+ # @return [OpenTox::Task] Feature object
5
8
  def self.find(uri, subjectid=nil)
6
9
  return nil unless uri
7
10
  feature = Feature.new uri
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentox-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Christoph Helma, Martin Guetlein, Andreas Maunz, Micha Rautenberg, David Vorgrimmler
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-09 00:00:00 +01:00
18
+ date: 2011-03-16 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency