From 9de297f2c3ea1c646017284e89b5389ed583ac0a Mon Sep 17 00:00:00 2001 From: rautenberg Date: Thu, 29 Oct 2015 13:54:13 +0100 Subject: API add single identifier descriptor calculation --- api/api.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'api') diff --git a/api/api.json b/api/api.json index 9d7e25f..641c05e 100644 --- a/api/api.json +++ b/api/api.json @@ -189,7 +189,7 @@ "algorithm", "descriptor" ], - "description": "Calculate desriptors for single compound or an array of compounds
curl example:
curl -Lk -X POST -i  -H \"accept:application/json\" -F \"file=@../lazar/test/data/batch_prediction.csv;type=application/csv\" -F \"descriptor=Openbabel.HBA1,Openbabel.HBA2,JoeLib.LogP\" https://mr-test.in-silico.ch/algorithm/descriptor
", + "description": "Calculate descriptors for a single compound as SMILES string or a CSV compound file
curl example:
curl -Lk -X POST -i  -H \"accept:application/json\" -F \"file=@../lazar/test/data/batch_prediction.csv;type=application/csv\" -F \"descriptor=Openbabel.HBA1,Openbabel.HBA2,JoeLib.LogP\" https://mr-test.in-silico.ch/algorithm/descriptor curl -Lk -X POST -i  -H \"accept:application/json\" -F \"identifier=O=C1NC(=O)NC=C1\" -F \"descriptor=Openbabel.MW,JoeLib.LogP\" https://mr-test.in-silico.ch/algorithm/descriptor 
CSV compound file has to be comma separated with SMILES strings in the first column.", "parameters": [ { "name": "accept", @@ -206,9 +206,16 @@ "name": "file", "in": "formData", "description": "CSV file of compounds", - "required": true, + "required": false, "type": "file" }, + { + "name": "identifier", + "in": "formData", + "description": "SMILES identifier", + "required": false, + "type": "string" + }, { "name": "descriptor", "in": "formData", -- cgit v1.2.3