diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-07-02 12:11:15 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-07-02 12:11:15 +0200 |
commit | 00bb00872506ffc4325ffd26c72107bb747f5f49 (patch) | |
tree | b5c1c69d3c7528610688786617883dcdcd8fc5f3 | |
parent | 86b6c32ac25e1b5ffc8eecd264682bf0ee77d44d (diff) |
API: add routes post: /fminer/bbrc and /fminer/last
-rw-r--r-- | api/algorithm.json | 140 |
1 files changed, 139 insertions, 1 deletions
diff --git a/api/algorithm.json b/api/algorithm.json index 8cd5eb5..a50ceb4 100644 --- a/api/algorithm.json +++ b/api/algorithm.json @@ -290,6 +290,68 @@ "$ref": "#/responses/404" } } + }, + "post": { + "tags": [ + "algorithm" + ], + "description": "run bbrc algorithm on dataset", + "parameters": [ + { + "$ref": "#/parameters/dataset_uri" + }, + { + "$ref": "#/parameters/prediction_feature" + }, + { + "$ref": "#/parameters/min_frequency" + }, + { + "$ref": "#/parameters/feature_type" + }, + { + "name": "backbone", + "description": "BBRC classes, pass 'false' to switch off mining for BBRC representatives.", + "in": "header", + "required": false, + "type": "string", + "enum": [ + true, + false + ], + "default": true + }, + { + "name": "min_chisq_significance", + "description": "Significance threshold (between 0 and 1)", + "in": "header", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/nr_hits" + }, + { + "$ref": "#/parameters/get_target" + } + ], + "produces": [ + "text/uri-list" + ], + "responses": { + "202": { + "$ref": "#/responses/202" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + } + } } }, "/algorithm/fminer/bbrc/sample": { @@ -356,6 +418,49 @@ "$ref": "#/responses/404" } } + }, + "post": { + "tags": [ + "algorithm" + ], + "description": "Run last algorithm on a dataset", + "parameters": [ + { + "$ref": "#/parameters/dataset_uri" + }, + { + "$ref": "#/parameters/prediction_feature" + }, + { + "$ref": "#/parameters/min_frequency" + }, + { + "$ref": "#/parameters/feature_type" + }, + { + "$ref": "#/parameters/nr_hits" + }, + { + "$ref": "#/parameters/get_target" + } + ], + "produces": [ + "text/uri-list" + ], + "responses": { + "202": { + "$ref": "#/responses/202" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + } + } } }, "/algorithm/fminer/{method}/match": { @@ -415,7 +520,7 @@ }, "prediction_feature": { "name": "prediction_feature", - "description": "URI of the feature to be predicted", + "description": "URI of the feature to be predicted (i.e. dependent variable)", "in": "header", "required": false, "type": "string" @@ -427,6 +532,39 @@ "required": false, "type": "string" }, + "min_frequency": { + "name": "min_frequency", + "description": "Minimum frequency (default 5)", + "in": "header", + "required": false, + "type": "string" + }, + "feature_type": { + "name": "feature_type", + "description": "Feature type, can be 'paths' or 'trees' (default 'trees')", + "in": "header", + "required": false, + "type": "string", + "enum": [ + "path", + "trees" + ], + "default": "trees" + }, + "nr_hits": { + "name": "nr_hits", + "description": "Set to 'true' to get hit count instead of presence", + "in": "header", + "required": false, + "type": "string" + }, + "get_target": { + "name": "get_target", + "description": "Set to 'true' to obtain target variable as feature", + "in": "header", + "required": false, + "type": "string" + }, "accept_representation": { "name": "accept", "in": "header", |