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
Before running the script, make sure you have the following installed:
- Python 3.x
- Required Python packages (specified in
requirements.txt
)
-
Clone the repository:
git clone https://github.com/your-username/af-dbgapmonitor.git
-
Navigate to the project directory:
cd af-dbgapmonitor
-
Install the required packages:
pip install -r requirements.txt
-
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
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.