summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-11-22 18:03:57 +0100
committerChristoph Helma <helma@in-silico.ch>2010-11-22 18:03:57 +0100
commit3583682a8c9921aea86bd53ed80153ae1d5fb02d (patch)
treedb5b086099ecfe71281ae4d04bd5ac3adb3e4366
parent89398b94b7dd8bd99641af62844449c3030e3d7d (diff)
OT.p_value changed to OT.pValue
-rw-r--r--fminer.rb7
-rw-r--r--lazar.rb2
2 files changed, 5 insertions, 4 deletions
diff --git a/fminer.rb b/fminer.rb
index 76d52e9..0f06584 100644
--- a/fminer.rb
+++ b/fminer.rb
@@ -187,9 +187,9 @@ post '/fminer/bbrc/?' do
features << smarts
metadata = {
OT.hasSource => url_for('/fminer/bbrc', :full),
- OT.isA => OT.NominalFeature,
+ OT.isA => OT.Substructure,
OT.smarts => smarts,
- OT.p_value => p_value.to_f,
+ OT.pValue => p_value.to_f,
OT.effect => effect,
OT.parameters => [
{ DC.title => "dataset_uri", OT.paramValue => params[:dataset_uri] },
@@ -330,9 +330,10 @@ post '/fminer/last/?' do
unless features.include? smarts
features << smarts
metadata = {
+ OT.isA => OT.Substructure,
OT.hasSource => feature_dataset.uri,
OT.smarts => smarts,
- OT.p_value => p_value.to_f,
+ OT.pValue => p_value.to_f,
OT.effect => effect,
OT.parameters => [
{ DC.title => "dataset_uri", OT.paramValue => params[:dataset_uri] },
diff --git a/lazar.rb b/lazar.rb
index c5a9259..ee83da3 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -87,7 +87,7 @@ post '/lazar/?' do
lazar.fingerprints[compound] << smarts
unless lazar.features.include? smarts
lazar.features << smarts
- lazar.p_values[smarts] = training_features.features[feature][OT.p_value]
+ lazar.p_values[smarts] = training_features.features[feature][OT.pValue]
lazar.effects[smarts] = training_features.features[feature][OT.effect]
end
else