The PrecisionTox Chemical Visualization Tool is a web-based application developed to facilitate the exploration and analysis of the PrecisionTox chemical collection.
🔗 https://dex.precisiontox.org/chem/
An interactive network that allows users to visualize how chemicals are classified according to two main categories: Use and Toxicity Endpoint.
Each node represents a category within the selected classification system. Upon clicking on any of these nodes, all chemicals associated to that particular category will be revealed.
These chemicals are simultaneously displayed in tables (one for each category) below the graph, providing a clear and organized view of the corresponding entries.
In addition, clicking on any chemical node will show a tooltip box displaying all compound identifiers.
Users can select a specific chemical using the search box, dropdown menu, or directly clicking on the corresponding link in the table. This will load a single chemical network view that displays all collected information for the selected compound.
This new network displays several nodes representing all main attributes: use and toxic endpoint categories, physicochemical properties, mechanisms of action, baseline toxicity data, molecular targets and adverse outcome pathways. Each can be clicked to display all corresponding data which will be shown in additional child nodes.
For further convenience, chemical information is also displayed in a structured table format beneath the graph.
Finally, the web application includes a comprehensive table listing the entire chemical collection. This table consolidates all available data for each chemical into clearly defined columns. Users can filter and sort the table as needed to support targeted analysis, as well as download it in different formats.
All data shown in the application were provided by PrecisionTox Consortium partners.
All raw data files can be found in app/data/
.
- Python3.6+
- Install required packages (virtual environment recommended)
source my_venv/bin/activate
pip install -r requirements.txt
You can run the app locally with:
python app/main.py
This step is not required as graph files are already provided as JSON files in app/static/elements/
.
If you want to rebuild these files run:
python app/process_data.py
This script will use raw data files present in app/data/
.
In addition, it also requires connecting to the PrecisionTox Central Database. For this, it is neccessary to create a app/config.yml
file with the following parameters:
psql_host: <psql database host>
psql_user: <psql user>
psql_pass: <psql user password
psql_db_name: <psql database name>