Giter Club home page Giter Club logo

happy-snake's Introduction


Happy-Snake

Happy-Snake

Haplotype comparison snakemake workflow for running multiple vcf samples with hap.py.

happy snake dag

Instructions

Quick testing instructions

You can clone this repository and fire up a test immediately with the provided toy datasets. The toy fasta needs to be relatively big for hap.py to be able to finish so if you want to download it from this repository you need to install git lfs. Once you've installed it you will get the toy fasta file by default when you run git clone https://github.com/oskarvid/happy-snake.

It runs in a docker container, install docker using the appropriate instructions here: https://docs.docker.com/install/

Then you run

cd /path/to/happy-snake
./scripts/go.sh

Setting input file information

Edit the samples.tsv file and enter the filename without the file ending in the sample column and the full file path in the VCF column. The file path is relative to the happy-snake directory. Only use tab spaces.

Download reference files

The workflow has been tested with the hg38 reference file from here: ftp://[email protected]/bundle/hg38/Homo_sapiens_assembly38.fasta.gz
You can download it with wget ftp://[email protected]/bundle/hg38/Homo_sapiens_assembly38.fasta.gz

You also need the gold standard vcf file, tbi index and bed interval file from here:
ftp://ftp-trace.ncbi.nlm.nih.gov/giab/ftp/release/NA12878_HG001/NISTv3.3.2/GRCh38/
Put them in your references directory.

Preprocessing the reference files

hap.py will do all preprocessing of your fasta file, just put it in the references directory. If you have an already unzipped fasta file the workflow will skip this step.

Configuring the go.sh script

If you want to use a different reference file directory than the default one, change the path in the variable called REFERENCES in the ./scripts/go.sh script and point it to your reference file directory.

Editing the config.yaml file

Edit the config.yaml file and change the file names, but don't change the /references file path because it refers to the mount point inside the container when the workflow is running.

That's it!

This should be all you need to do to get going using this workflow. Happy benchmarking!

Docker image build instructions

The docker image was built by manually building the hap.py docker image by cloning the hap.py github repository, and then this manually built hap.py image was used as base image to build the snakemake docker image from the snakemake github repository. It's a bit hacky but there you go.

happy-snake's People

Contributors

oskarvid avatar

Watchers

 avatar  avatar

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.