Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

FIP Matrix App

A Streamlit-based interactive application for visualizing FAIR convergence data from nanopublications.

🔁 Data Synchronization

This app automatically fetches the latest new_matrix.csv from the peta-pico/dsw-nanopub-api repository every hour using GitHub Actions.
The CSV is saved in the data/ directory and used live in the app.

🧭 Selecting what to show

Nothing is selected to begin with, and the matrix appears with the first selection. Its rows are the selected FIP questions, or all questions if none is selected. Its columns are the FIPs of the selected communities, or of all communities if none is selected, and next to them the selected reference FIPs. Reference FIPs selected on their own, without questions or communities, are shown on their own.

⭐ Reference FIPs (rFIPs)

The reference FIPs come live from the queries behind the FAIR Implementation Space on Nanodash (see config.py): the latest rFIP of each community and the FAIR Supporting Resources it recommends. Each selected rFIP is a column of its own, marked ⭐, next to the FIPs.

An rFIP recommends resources per FAIR principle rather than per FIP question, so a recommendation is marked under every question of its principle (F1 under F1-MD and F1-D), and under the principle itself where the FIP has no question for it (R1.3). The column also carries the declarations that matrix.csv attributes to the rFIP, with their declared status; where both apply, the recommendation is shown.

If the query service cannot be reached, the app shows a warning and the matrix without the rFIP columns.

📦 Structure

.
├── main.py                  # Streamlit app
├── utils.py                 # Data logic
├── config.py                # Color / value mappings
├── data/
│   └── new_matrix.csv       # Auto-updated data file
├── Dockerfile
├── docker-compose.yml
├── docker-compose.override.yml.template
└── .github/workflows/
    └── sync_fip_matrix.yml  # Data sync workflow

🐳 Run with Docker (recommended)

Requires Docker and Docker Compose.

docker compose up -d

The app is then available at http://localhost:8501.

To override defaults (port, environment variables, bind mounts), copy the template and edit the copy — Compose merges it automatically:

cp docker-compose.override.yml.template docker-compose.override.yml

Stop and remove the container with:

docker compose down

🚀 Run locally (without Docker)

pip install -r requirements.txt
streamlit run main.py

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages