AllenInstitute / asap-modules

Shared repo for EM connectomics and Array Tomography render based image processing modules
https://asap-modules.readthedocs.io/
BSD 2-Clause "Simplified" License
14 stars 4 forks source link

Question: how to connect render-ws and mongo service? #249

Open zuwenqiang opened 1 year ago

zuwenqiang commented 1 year ago

Hello, I created mongo service according to your suggestion, but I don't know how to connect render service and mongo service. Here's how I built these two services:

  1. mongo service: docker pull dubc/mongodb-3.4 docker run -d -p 27017:27017 --name mongo dubc/mongodb-3.4

  2. render service docker pull fcollman/render-ws docker run -p 8080:8080 --name render_service -e "MONGO_HOST=localhost" -l mongo -v /home/share/zuwenqiang:/home/zuwenqiang --rm fcollman/render-ws

In addition, the two services should be set up successfully. I pinged port 8080 and port 27017, and both were successful.

The render service is always like this: image

Sorry, I'm a newbie and I really need your guidance.

RussTorres commented 1 year ago

Apologies for taking a long time to get to this -- notifications from this repo were buried for me. It seems from your screenshot like you are connected to your new empty database (I believe there are red error messages when unable to connect). In this case, your next step is to add data (e.g. tilespecs) to the database. This repo provides a script to do that for our acquisition format in asap.dataimport.generate_EM_tilespecs_from_metafile.py, however you may need to modify or subclass that for your use case.

https://github.com/AllenInstitute/asap-modules/blob/c29b2126622e39d94957bcb178c97da993363f2b/asap/dataimport/generate_EM_tilespecs_from_metafile.py

This should work with our example data, though. While we are waiting on the data dryad link provided with the elife paper to be fixed, I can offer this lens correction set hosted on zenodo as an example of our formats which should work with that script: https://doi.org/10.5281/zenodo.7600575

If this is still of interest to you, please let me know if you are able to get tilespecs into the database -- that should fill in an example of the fields for Owner, Project, Stack, etc. and give you a better idea how parts of this work.

Thank you, Russel