summaryrefslogtreecommitdiff
path: root/descriptor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'descriptor.rb')
-rw-r--r--descriptor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/descriptor.rb b/descriptor.rb
index 96599d6..25ec4f3 100644
--- a/descriptor.rb
+++ b/descriptor.rb
@@ -156,7 +156,7 @@ module OpenTox
before '/descriptor/?*' do
if request.get?
- @algorithm = OpenTox::Algorithm.new @uri
+ @algorithm = OpenTox::Algorithm.new @uri, @subjectid
@algorithm.parameters = [
{ RDF::DC.description => "Dataset URI",
RDF::OT.paramScope => "optional",
@@ -233,7 +233,7 @@ module OpenTox
if params[:compound_uri]
compounds = [ Compound.new(params[:compound_uri], @subjectid) ]
elsif params[:dataset_uri]
- compounds = Dataset.new(params[:dataset_uri]).compounds
+ compounds = Dataset.new(params[:dataset_uri], @subjectid).compounds
end
[:openbabel, :cdk, :joelib].each{ |lib| send lib, compounds, descriptors[lib] }
@feature_dataset.put