Skip to content

Jinjie-Duan/gnomad_hail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hail utilities for gnomAD

This repo contains a number of Hail utility functions and scripts for the gnomAD project and the MacArthur lab. Load using:

from gnomad_hail.resources import *
from gnomad_hail.utils import *
from gnomad_hail.slack_utils import *

resources.py

Resource map

utils.py

Hail helper functions

slack_utils.py

Helper functions for posting to Slack. Submit along with slack_creds.py (e.g. in HAIL_SCRIPTS environment variable in pyhail.py) which has only a slack_token variable with a Slack API key.

pyhail.py

Submission script for Hail. Notable differences from cloudtools include:

  • Inline scripts (--inline "print hc.read('gs://bucket/my.vds').count()")
  • Add helper scripts designated in HAIL_SCRIPTS environment variable

init_scripts

Google Cloud initialization scripts. Cluster should be started up with --init gs://gnomad-public/tools/inits/master-init.sh, which is tracked here, deployed to cloud for usage. gnomad-init.sh and sparklyr-init.sh are pulled from this repo and called by master-init.sh.

tests

Tests are run automatically on creation of each cluster (in gnomad-init.sh) and can be triggered manually using:

cd /path/to/gnomad_hail
PYTHONPATH=.:$PYTHONPATH python -m unittest discover

About

Hail helper functions for gnomAD/MacArthur lab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.0%
  • Shell 8.0%