1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
OpenTox lazar
=============
* An OpenTox REST Webservice (http://www.opentox.org)
* Ruby implementation of the lazar algorithm
* Implements a subset of the OpenTox algorithm/model API (http://opentox.org/wiki/opentox/Structure).
* Current version runs at http://webservices.in-silico.ch/lazar/v0
REST API
Description Method URI Parameters Result Status codes
Get index of all GET /models List of model URIs 200, 500
models
Get model description GET /model{id} XML with model 200, 202, 404, 500
representation
Create a prediction POST / dataset_uri Model URI 200, 500
model
Delete a model DELETE /{id} 200, 404, 500
Create a prediction POST /{id} compound_uri Prediction URI 200, 404, 500
Get index of all GET /predictions List of prediction 200, 500
predictions URIs
Show a prediction GET /prediction/{id} XML with prediction 200, 202, 404, 500
result
Show neighbors for a GET /prediction/{id} XML with neighbors 200, 404, 500
prediction /neighbors
Show relevant features GET /prediction/{id} XML with relevant 200, 404, 500
for a prediction /features features
Delete a prediction DELETE /prediction/{id} 200, 404, 500
EXAMPLES
Create a prediction model from a dataset:
curl -X POST -d dataset_uri=http://webservices.in-silico.ch/dataset/v0/1 http://webservices.in-silico.ch/lazar/v0/models
Get model information:
curl http://webservices.in-silico.ch/lazar/v0/model/1 (returns status code 202, if model is still under construction)
Predict a compound:
curl -X POST -d compound_uri=http://webservices.in-silico.ch/compound/v0/N%23%5BN%2B%5Dc1ccccc1%2EF%5BB%2D%5D%28F%29%28F%29F http://webservices.in-silico.ch/lazar/v0/model/1
Show a prediction:
curl http://webservices.in-silico.ch/lazar/v0/prediction/1 (returns status code 202, if prediction is still running)
Show prediction neighbors:
curl http://webservices.in-silico.ch/lazar/v0/prediction/neighbors
Show relevant features for a prediction:
curl http://webservices.in-silico.ch/lazar/v0/prediction/features
INSTALLATION
Run 'rake install' to install the required gems
Copyright (c) 2009 Christoph Helma. See LICENSE for details.
|