Skip to content

Latest commit

 

History

History
43 lines (21 loc) · 1.21 KB

README.md

File metadata and controls

43 lines (21 loc) · 1.21 KB

lmeasure-svc

An HTTP wrapper for L-Measure, which is a tool for quantifying features of neuronal morphologies, in a containerized web service.

Starting the service

To start the service running in a container, run:

docker run --rm -p 5000:5000 melizalab/lmeasure-svc

If you intend to deploy the container behind an nginx proxy:

docker-compose up docker-compose.yml

Using the HTTP API

Assuming you have httpie installed; use curl instead if you prefer.

To get a list of endpoints:

http GET http://localhost:5000/

To get a list of supported metrics:

http OPTIONS http://localhost:5000/lmeasure/

To compute all the supported measures from file.DAT

http POST http://localhost:5000/lmeasure/ [email protected]

To compute specific measures:

http POST http://localhost:5000/lmeasure/ [email protected] metrics:='["Fractal_Dim"]'

To convert Neurolucida or other file formats to SWC (you don't have to do this before computing measures; it's just for convenience).

http POST http://localhost:5000/convert/ [email protected]

Build the docker image:

docker build -t melizalab/lmeasure-svc . Replace melizalab with your own docker cloud ID.