summaryrefslogtreecommitdiff
path: root/lib/lazar.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2015-09-18 13:31:13 +0200
committergebele <gebele@in-silico.ch>2015-09-18 13:31:13 +0200
commit1255775bca9bcb9ca9100c38504e42541249865d (patch)
tree0f332a14a915ac2f8d63bad4d2c6b6c8d8fcb1e8 /lib/lazar.rb
parent9bf81bcafaf958c02a448d3ff3410220dd791d40 (diff)
parent33989261450bba279b4e002e5e4ea0475d742abb (diff)
Merge branch 'development' of github.com:opentox/lazar into development
Diffstat (limited to 'lib/lazar.rb')
-rw-r--r--lib/lazar.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/lazar.rb b/lib/lazar.rb
index decbe69..89b50f7 100644
--- a/lib/lazar.rb
+++ b/lib/lazar.rb
@@ -15,7 +15,8 @@ ENV["MONGOID_ENV"] ||= "development"
# TODO remove config files, change default via ENV or directly in Mongoid class
Mongoid.load!("#{File.expand_path(File.join(File.dirname(__FILE__),'..','mongoid.yml'))}")
Mongoid.raise_not_found_error = false # return nil if no document is found
-$mongo = Mongoid.default_client
+$mongo = Mongo::Client.new('mongodb://127.0.0.1:27017/opentox')
+#$mongo = Mongoid.default_client
$gridfs = $mongo.database.fs
# R setup
@@ -42,7 +43,7 @@ ENV['FMINER_SILENT'] = 'true'
ENV['FMINER_NR_HITS'] = 'true'
# OpenTox classes and includes
-CLASSES = ["Feature","Compound","Dataset","Validation","CrossValidation","Experiment"]# Algorithm and Models are modules
+CLASSES = ["Feature","Compound","Dataset","Validation","CrossValidation","RepeatedCrossValidation","Experiment"]# Algorithm and Models are modules
[ # be aware of the require sequence as it affects class/method overwrites
"overwrite.rb",
@@ -58,7 +59,7 @@ CLASSES = ["Feature","Compound","Dataset","Validation","CrossValidation","Experi
"bbrc.rb",
"model.rb",
"similarity.rb",
- "neighbor.rb",
+ #"neighbor.rb",
"classification.rb",
"regression.rb",
"validation.rb",