summaryrefslogtreecommitdiff
path: root/fminer.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-05-23 14:37:05 +0000
committerChristoph Helma <helma@in-silico.ch>2011-05-23 14:37:05 +0000
commit5e19668ccd95d6d70973f00e3b1beff0b3b9cfa8 (patch)
tree3fedc6cd9736ff578d524aaac034b7581ad8b1e9 /fminer.rb
parent750ea63f2ad3bd998b698334fdd52488b139171b (diff)
parent6cb25029a9e6f8dc397f642892a020ab4de4c0f4 (diff)
Merge branch 'new_model_prediction_format' into development
Diffstat (limited to 'fminer.rb')
-rw-r--r--fminer.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/fminer.rb b/fminer.rb
index 35e1bad..155c555 100644
--- a/fminer.rb
+++ b/fminer.rb
@@ -23,7 +23,7 @@ get "/fminer/bbrc/?" do
DC.title => 'fminer backbone refinement class representatives',
DC.creator => "andreas@maunz.de, helma@in-silico.ch",
DC.contributor => "vorgrimmlerdavid@gmx.de",
- RDF.type => [OTA.PatternMiningSupervised],
+ RDF.type => [OT.Algorithm,OTA.PatternMiningSupervised],
OT.parameters => [
{ DC.description => "Dataset URI", OT.paramScope => "mandatory", DC.title => "dataset_uri" },
{ DC.description => "Feature URI for dependent variable", OT.paramScope => "mandatory", DC.title => "prediction_feature" },
@@ -44,7 +44,7 @@ get "/fminer/last/?" do
DC.title => 'fminer latent structure class representatives',
DC.creator => "andreas@maunz.de, helma@in-silico.ch",
DC.contributor => "vorgrimmlerdavid@gmx.de",
- RDF.type => [OTA.PatternMiningSupervised],
+ RDF.type => [OT.Algorithm,OTA.PatternMiningSupervised],
OT.parameters => [
{ DC.description => "Dataset URI", OT.paramScope => "mandatory", DC.title => "dataset_uri" },
{ DC.description => "Feature URI for dependent variable", OT.paramScope => "mandatory", DC.title => "prediction_feature" },
@@ -220,7 +220,7 @@ post '/fminer/bbrc/?' do
features << smarts
metadata = {
OT.hasSource => url_for('/fminer/bbrc', :full),
- RDF.type => [OT.Substructure],
+ RDF.type => [OT.Feature, OT.Substructure],
OT.smarts => smarts,
OT.pValue => p_value.to_f,
OT.effect => effect,
@@ -354,7 +354,6 @@ post '/fminer/last/?' do
end
end
end
-
raise "No compounds in dataset #{training_dataset.uri}" if compounds.size==0
@@ -383,7 +382,7 @@ post '/fminer/last/?' do
unless features.include? smarts
features << smarts
metadata = {
- RDF.type => [OT.Substructure],
+ RDF.type => [OT.Feature, OT.Substructure],
OT.hasSource => feature_dataset.uri,
OT.smarts => smarts,
OT.pValue => p_value.to_f.abs,