-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4bc82f0
commit 7e4df90
Showing
1 changed file
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,46 @@ | ||
# af-dbgapmonitor | ||
Airflow workflow to monitor dbGaP authorized requestors | ||
# 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](https://www.ncbi.nlm.nih.gov/projects/gap/cgi-bin/study.cgi?study_id=phs002371.v3.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: | ||
|
||
```shell | ||
git clone https://github.com/your-username/af-dbgapmonitor.git | ||
``` | ||
|
||
2. Navigate to the project directory: | ||
|
||
```shell | ||
cd af-dbgapmonitor | ||
``` | ||
|
||
3. Install the required packages: | ||
|
||
```shell | ||
pip install -r requirements.txt | ||
``` | ||
|
||
4. Setup a Slack [incomming webhook](https://api.slack.com/messaging/webhooks) that posts to your target channe. Your webhook URL will look something like this: | ||
```shell | ||
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX | ||
``` | ||
|
||
## Usage | ||
|
||
To run the `dbgapmonitor.py` script, use the following command: | ||
|
||
```shell | ||
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. |