diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-06-15 14:34:33 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-06-15 14:34:33 +0200 |
commit | b5f871510bbccf1179f639c85ac64a28695fc03e (patch) | |
tree | 249e946e8adf03cb2f534a051de42448d872c455 | |
parent | e0dccc2e19ad7deefe996e4be1f823edf563f043 (diff) | |
parent | f0848668d330d31d7a6a3bb1959b51d4babfce2a (diff) |
Merge branch 'hotfix/v2.0.1' into development
Conflicts:
fminer.rb
lazar.rb
toxcreate.rb
-rw-r--r-- | fminer.rb | 1 | ||||
-rw-r--r-- | lazar.rb | 3 | ||||
-rw-r--r-- | toxcreate.rb | 6 |
3 files changed, 5 insertions, 5 deletions
@@ -19,6 +19,7 @@ class FminerTest < Test::Unit::TestCase dataset_uri = OpenTox::Algorithm::Fminer::BBRC.new.run({:dataset_uri => @@regression_training_dataset.uri, :prediction_feature => feature, :subjectid => @@subjectid, :feature_type=>"paths"}).to_s d =OpenTox::Dataset.new dataset_uri, @@subjectid d.load_features(@@subjectid) + #assert_equal 185, d.features.size assert_equal 219, d.features.size d.delete(@@subjectid) end @@ -29,7 +29,6 @@ class LazarTest < Test::Unit::TestCase validate_owl model_uri,@@subjectid lazar = OpenTox::Model::Lazar.find model_uri, @@subjectid @models << lazar - assert_equal 219, lazar.features.size compound = OpenTox::Compound.from_smiles("c1ccccc1NN") prediction_uri = lazar.run(:compound_uri => compound.uri, :subjectid => @@subjectid).to_s prediction = OpenTox::LazarPrediction.find(prediction_uri, @@subjectid) @@ -153,6 +152,7 @@ class LazarTest < Test::Unit::TestCase end +=begin def test_ambit_classification_model # create model @@ -194,7 +194,6 @@ class LazarTest < Test::Unit::TestCase # dataset prediction #@lazar.delete(@@subjectid) end -=begin =end end diff --git a/toxcreate.rb b/toxcreate.rb index c6b38d9..8287140 100644 --- a/toxcreate.rb +++ b/toxcreate.rb @@ -70,9 +70,9 @@ class ToxCreateTest < Test::Unit::TestCase time +=5 end assert first(".model_status").has_content?("Completed") - #click_on "Predict" - #fill_in "or enter a Name, InChI, Smiles, CAS, ...", :with => "NNc1ccccc1" - #check "hamster_carcinogenicity" + click_on "Predict" + fill_in "or enter a Name, InChI, Smiles, CAS, ...", :with => "NNc1ccccc1" + check "hamster_carcinogenicity" #click_button "Predict" #assert page.has_content? "false" #assert page.has_content? "0.294" |