Giter VIP home page Giter VIP logo

gnomad_hail's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.