Code Monkey home page Code Monkey logo

shapeit4_pipeline's Introduction

Genotype phasing pipeline

1. Description

Pipeline for genotype phasing using SHAPEIT4. The pipeline automatically chunks chromosomes into overlapping regions, distributes chunks for phasing accross multiple compute nodes, and concatinates chunks based on overlapping flanking regions. The pipeline was developed using Nextflow and was tested on SLURM job scheduler.

2. Prerequisites

The following software is required:

  • Nextflow
  • bcftools

3. Installation

To run this pipline you will need:

  1. Download and install (SHAPEIT4](https://odelaneau.github.io/shapeit4/)

4. Execution

  1. Modify nextflow.config configuration file:
  • params.unphased_vcfs -- path to VCF/BCF files with unphased genotypes. Each VCF/BCF file must have the corresponding tbi/csi index.
  • params.window -- size of the chromosome chunk in base-pairs for distributed phasing. See SHAPEIT4 documentation for details.
  • params.flank -- size of the flanking region around chunk in base-pairs.
  • params.shapeit_exec -- path to the SHAPEIT4 executable
  • params.shapeit_maps -- path to the SHAPEIT4 folder with genetic maps. NOTE: For GRCh37, you need to modify shapeit command line inside phase_chunks process in Phasing.nf.
  • process.* and executor.* -- set this arguments according to your compute cluster configuration.
  1. Run pipleine. Example of interactive SLURM job:
salloc --time=12:00:00 --ntasks=1 --mem-per-cpu=16G
module load nextflow
module load bcftools
nextflow run Phasing.nf

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.