Skip to content

Latest commit

 

History

640 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STOPeData

STOPeData (“eData”) is a data entry and formatting Shiny application (app) in the Source to Outcome Pathway/Risk Assessment Database family, designed to make extracting data on chemical concentrations in the environment from papers and reports easier.

🖥️ Test Version (NIVA login required) · 🖥️ Prod (Login required) · 🪲 Report Bug · ❔Request Feature

Table of Contents

About The Project

This app is designed to guide users through the formatting, cleaning and annotation of exposure/pollution/monitoring data (e.g. mg/L of a chemical in an environmental matrix). Published studies and reports are an important source of this data, but it is often fragmented and difficult to analyse without extensive data cleaning and transformation. By assisting and automating this step, we hope to make exposure assessment - and therefore the risk assessment of chemicals in the environment - as easy as possible.

This app is part of the Source to Outcome Pathway/Risk assessment database family of R Shiny apps, and provides one-half of the data necessary for environmental risk assessment. Its counterpart for toxicity/bioassay data is STOP qData. Environmental risk predictions can be viewed at the Source To Outcome Predictor.

Built With

R-CMD-check Codecov test coverage

Getting Started

Prerequisites

  • R version >=4.1.0 (currently built on 4.5.3)
  • pak, for dependency installation

Installation

  1. (Optional) Get an API key for LLM data extraction (Anthropic/OpenAI/Google Gemini), and Zenodo/Zenodo Sandbox tokens for uploading to Zenodo.

  2. Clone the repo, or install from GitHub:

    git clone https://github.com/NIVANorge/STOPeData.git
    pak::pak("NIVANorge/STOPeData")
  3. Install the companion schema package and the remaining dependencies:

    pak::pak("NIVANorge/eDataDRF")   # companion schema package, must be installed separately
    pak::local_install_deps()        # or source dependencies.R for the full list
  4. (Optional) Enter your API keys/tokens in your .Renviron file:

    ANTHROPIC_API_KEY="sk-ant-api03-..."
    OPENAI_API_KEY="..."
    GOOGLE_API_KEY="..."
    ZENODO_TOKEN="..."
    ZENODO_SANDBOX_TOKEN="..."
    
  5. If you’re developing on a fork, point origin at it to avoid accidental pushes to the base project:

    git remote set-url origin sawelch-NIVA/STOPeData
    git remote -v # confirm the change
  6. Run the app locally (or use Docker):

    golem::run_dev() # dev mode, more verbose
    shiny::runApp('app.R', host='0.0.0.0', port=3838) # prod mode

Usage

Run the application locally

Diagrams

complicated_workflow

An overview of the manual/LLM assisted workflow.

Roadmap

See the open issues for a full list of proposed features (and known issues).

Contact

Sam Welch - sam.welch@niva.no

Project Link: https://github.com/NIVANorge/STOPeData

Acknowledgments

  • Project Lead: Knut Erik Tollefsen
  • Funding: EXPECT, PARC, and NCTP Projects
  • Testers: Li Xi, Knut Erik Tollefsen, Sophie Mentzel, Pierre Blévin, Camden Karon Klefbom
  • Support and Advice: Viviane Giradin, Andrea Merlina, Kim Leirvik, Jemmima Knight, Malcolm Reid
  • LLMs were used in the creation of this app and its code.
  • Readme template repo: Best-README-Template
  • (If I’ve left you off please let me know!)

About

STOPeData is a data entry and formatting Shiny app in the Source to Outcome Pathway family, designed to make extracting data on chemical concentrations in the environment from papers and reports easier.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages