Skip to content
David Johnson edited this page Mar 9, 2016 · 8 revisions

Usage

Basically to test directly, make sure you've got the right prereqs installed:

Run pip install -r requirements.txt

In config.py set UPLOAD_FOLDER to somewhere sensible (e.g. /tmp/ - it stores just temporary files for the conversion.

then:

python isarest.py to start flask's embedded server, and browse. localhost:5000/api/spec.html for swagger UI (Swagger documentation not yet complete) localhost:5000/api/spec.json for swagger JSON

or load into PyCharm and play with the tests.py tests

Convert ISA-Tab to JSON

POST /api/v1/convert/tab-to-json

Consumes Produces Description
application/zip application/json Takes a zip file containing ISA-Tab .txt files, converts and returns a single ISA JSON. Returns 200 OK if succeeded.

Convert ISA JSON to ISA tab

POST /api/v1/convert/json-to-tab

Consumes Produces Description
application/json application/zip Takes a ISA-JSON .json files, converts and returns a zip containing ISA-Tab .txt files. Returns 200 OK if succeeded.

Convert ISA tab to SRA

POST /api/v1/convert/tab-to-sra

Consumes Produces Description
application/zip application/zip Takes a zip file containing ISA tab .txt files, converts and returns a zip containing SRA XML files. Returns 200 OK if succeeded.

Convert ISA JSON to SRA

POST /api/v1/convert/tab-to-sra

Consumes Produces Description
application/zip application/zip Takes a zip file containing ISA JSON file and data files, converts and returns a zip containing SRA XML files. Returns 200 OK if succeeded.

Convert ISA tab to CEDAR JSON

POST /api/v1/convert/tab-to-cedar

Consumes Produces Description
application/zip application/json Takes a zip file containing a collection of ISA tab .txt files, converts and returns a single CEDAR JSON. Returns 200 OK if succeeded.
Clone this wiki locally