summaryrefslogtreecommitdiff
path: root/example.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-01-19 16:12:21 +0100
committermguetlein <martin.guetlein@gmail.com>2011-01-19 16:12:21 +0100
commit7b06ce45180a5b2c0dd0095cd1a60ec974b46aa5 (patch)
tree39d34044b9879d1bd22df1cc9005fcbe6a0afb00 /example.rb
parentbba009c7c59655392236e1cdaf873117bb59600f (diff)
aa suport, rdf support
Diffstat (limited to 'example.rb')
-rwxr-xr-xexample.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/example.rb b/example.rb
index 1b4ee98..3cced72 100755
--- a/example.rb
+++ b/example.rb
@@ -6,9 +6,9 @@ class Example
@@file=File.new("data/hamster_carcinogenicity.yaml","r")
@@file_type="text/x-yaml"
@@model=File.join CONFIG[:services]["opentox-model"],"1"
- #@@feature= URI.encode("http://localhost/toxmodel/feature#Hamster%20Carcinogenicity%20(DSSTOX/CPDB)")
+ #@@feature= URI.encode("http://local-ot/toxmodel/feature#Hamster%20Carcinogenicity%20(DSSTOX/CPDB)")
@@feature= File.join CONFIG[:services]["opentox-dataset"],"1/feature/hamster_carcinogenicity"
- #@@predicted_feature= URI.encode("http://localhost/toxmodel/feature#Hamster%20Carcinogenicity%20(DSSTOX/CPDB)_lazar_classification")
+ #@@predicted_feature= URI.encode("http://local-ot/toxmodel/feature#Hamster%20Carcinogenicity%20(DSSTOX/CPDB)_lazar_classification")
@@alg = File.join CONFIG[:services]["opentox-algorithm"],"lazar"
@@alg_params = "feature_generation_uri="+File.join(CONFIG[:services]["opentox-algorithm"],"fminer/bbrc")
@@data=File.join CONFIG[:services]["opentox-dataset"],"1"
@@ -54,6 +54,10 @@ class Example
# creates the resources that are requested by the examples
def self.prepare_example_resources
+
+ #TODO
+ subjectid = nil
+
task = OpenTox::Task.create("prepare examples", "n/a") do |task|
@@summary = ""
#delete validations
@@ -103,12 +107,12 @@ class Example
log "create validation report"
rep = Reports::ReportService.instance(File.join(CONFIG[:services]["opentox-validation"],"report"))
- rep.delete_all_reports("validation")
+ rep.delete_all_reports("validation", subjectid)
rep.create_report("validation",v.validation_uri)
task.progress(80)
log "create crossvalidation report"
- rep.delete_all_reports("crossvalidation")
+ rep.delete_all_reports("crossvalidation", subjectid)
rep.create_report("crossvalidation",cv.crossvalidation_uri)
task.progress(90)