Imageomics / dashboard-prototype

Prototype data dashboard for Imageomics Data
http://dash.imageomics.org
MIT License
5 stars 2 forks source link
dashboard data data-visualization eda evaluation visualization

Dashboard Prototype

Prototype data dashboard using the Cuthill Gold Standard Dataset, which was processed from Cuthill, et. al. (original dataset available at doi:10.5061/dryad.2hp1978). Test datasets (the processed version of Cuthill's data with and without filepath URLs) are available in test_data.

This dashboard focuses on images labeled at the species and subspecies level as described in a CSV.

How it works

For full dashboard functionality, upload a CSV or XLS file with the following columns:

*Note:

Running Dashboard

Create and activate a new (python) virtual environment. Then install the required packages (if using conda, first run conda install pip):

pip install -r requirements.txt 

and run

python dashboard.py

Then navigate to http://127.0.0.1:8050/ in your browser to see the graphs.

Running with Docker

To run the dashboard in a more scalable manner a Dockerfile is provided. This container uses gunicorn to support more users at the same time. Building and running the container requires that docker is installed.

Building the container

docker build -t dashboard .

Running the container

To deploy the dashboard with 6 workers run the following command:

docker run --env BACKEND_WORKERS=6 -p 5000:5000 -it dashboard

Then open the following URL http://0.0.0.0:5000/.

Preview

Histogram View

image

Map View

image

Testing

Test Requirements

The testing suite requires Dash Testing and pytest-mock, which can be installed in your python environment by running:

pip install dash\[testing] pytest-mock

Running Tests

Within your python environment run the following command to run all tests:

pytest