summaryrefslogtreecommitdiff
path: root/lib/import.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-10-07 10:25:58 +0200
committerChristoph Helma <helma@in-silico.ch>2016-10-07 10:25:58 +0200
commit91787edb3682900bc5a2feeca66e5142f387fcc6 (patch)
treefcb189bb8e84c9b3727b29f0846a5f820b596aee /lib/import.rb
parent4348eec89033e6677c9f628646fc67bd03c73fe6 (diff)
unified interface for prediction algorithms
Diffstat (limited to 'lib/import.rb')
-rw-r--r--lib/import.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/import.rb b/lib/import.rb
index 17894a9..8e57401 100644
--- a/lib/import.rb
+++ b/lib/import.rb
@@ -76,7 +76,7 @@ module OpenTox
if study["protocol"]["category"]["title"].match(/Proteomics/) and effect["result"]["textValue"] and effect["result"]["textValue"].length > 50 # parse proteomics data
JSON.parse(effect["result"]["textValue"]).each do |identifier, value| # time critical step
- proteomics_features[identifier] ||= NumericFeature.find_or_create_by(:name => identifier, :category => "Proteomics", :unit => "Spectral counts", :source => source)
+ proteomics_features[identifier] ||= NumericFeature.find_or_create_by(:name => identifier, :category => "Proteomics", :unit => "Spectral counts", :source => source,:measured => true)
nanoparticle.parse_ambit_value proteomics_features[identifier], value, dataset
end
else
@@ -98,6 +98,7 @@ module OpenTox
:category => category,
:conditions => effect["conditions"],
:source => study["protocol"]["category"]["term"],
+ :measured => true,
:warnings => warnings
)
nanoparticle.parse_ambit_value feature, effect["result"], dataset