Skip to content

Script and action to monitor dbGaP authorized requestors

License

Notifications You must be signed in to change notification settings

ncihtan/dbgapmonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitor authorized requestors for the HTAN dbGap study

This project contains a Python script called dbgapmonitor.py that monitors changes in the authorized requestor for the HTAN dbGaP study, accession phs002371.v5.p1

Prerequisites

Before running the script, make sure you have the following installed:

  • Python 3.x
  • Required Python packages (specified in requirements.txt)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/af-dbgapmonitor.git
  2. Navigate to the project directory:

    cd af-dbgapmonitor
  3. Install the required packages:

    pip install -r requirements.txt
  4. Setup a Slack incomming webhook that posts to your target channe. Your webhook URL will look something like this:

    https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

Usage

To run the dbgapmonitor.py script, use the following command:

export SLACK_WEBHOOK_URL='<your-webhook-url>'
python dbgapmonitor.py

This repoistory also contains a workflow that runs weekly at 0800 GMT. The webhook url is set througn a Github repository secret.

About

Script and action to monitor dbGaP authorized requestors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages