Giter VIP home page Giter VIP logo

loaderdockercontainer's Introduction

Loader Container Build Status

Contains imageLoader and uAIMDataLoader for loading images and markups into caMicroscope.

Building

docker build -t camicroscope_loader .

Running


mkdir img
export CAMIC_IMAGES_DIR=$(echo $(pwd)/img)

export CAMIC_KUE_PORT=6000
export CAMIC_MARKUPLOADER_PORT=6001
export CAMIC_DATALOADER_PORT=6002

export dataloader_host=127.0.0.1 #IP address of data container
export annotations_host=127.0.0.1 #IP address of data container
export mongo_host=127.0.0.1 #IP address of data container
export mongo_port=27017
docker run -itd -p $CAMIC_KUE_PORT:3000 -p $CAMIC_MARKUPLOADER_PORT:3001 -p $CAMIC_DATALOADER_PORT:3002 -v $CAMIC_IMAGES_DIR:/data/images -e "dataloader_host=$(echo $dataloader_host)" -e "annotations_host=$(echo $annotations_host)" -e "mongo_host=$(echo $mongo_host)" -e "mongo_port=$(echo $mongo_port)"  camicroscope_loader

Dataloader API

Following examples assume <API_PORT>==32799

POST /submitData

curl -v -F id=TCGA-02-0001 -F upload=@TCGA-02-0001-01Z-00-DX1.83fce43e-42ac-4dcd-b156-2908e75f2e47.svs http://localhost:32799/submitData Return type: json On success returns: {"status":"success"}

GET /subjectIdExists

curl localhost:32799/subjectIdExists?SubjectUID=TCGA-02-0001 Returns an array with subjectID and file path. Empty array if subject Id doesnt exist

GET /getMD5ForImage

curl localhost:32799/getMD5ForImage?imageFileName=TCGA-02-0001-01Z-00-DX1.83fce43e-42ac-4dcd-b156-2908e75f2e47.svs Returns an array with MD5 of the image [{"md5sum":"418a0724b0a2113bcd2956bacae105b7"}]

loaderdockercontainer's People

Contributors

lastlegion avatar tdiprima avatar

Watchers

James Cloos avatar Birm avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.