Giter Site home page Giter Site logo

wgs_somatic_pon's Introduction

wgs_somatic_pon

Create panel of normals for different tools

Snakefmt License: MIT

๐Ÿ’ฌ Introduction

This snakemake workflow is designed to generate panel of normal (PoN) files for a plethora of tools. Which can in turn be used for variant calling analyses.

Mutect2

The PoN is generated according to the best practices from GATK as described in this tutorial. For each .bam file of a normal sample variants are called using mutect2 and combined into a .vcf file representing the PoN.

CNVkit

For CNVkit, the docs talk about a reference of pooled normals which is generated in two steps from .bam files of normal samples.

โ— Dependencies

To run this workflow, the following tools need to be available:

python

snakemake

singularity

๐ŸŽ’ Preparations

Sample data

  1. Add all sample ids to samples.tsv in the column sample.
  2. Add sample type information, normal or tumor, to units.tsv.
  3. Use the analysis_output folder from wgs_std_viper as input.

Reference data

  1. You need a reference .fasta file representing the genome used for mapping. For the different tools to work, you also need to prepare index files and a .dict file.
  • The required files for the human reference genome GRCh38 can be downloaded from google cloud. The download can be manually done using the browser or using gsutil via the command line:
gsutil cp gs://genomics-public-data/resources/broad/hg38/v0/Homo_sapiens_assembly38.fasta /path/to/download/dir/
  • If those resources are not available for your reference you may generate them yourself:
samtools faidx /path/to/reference.fasta
gatk CreateSequenceDictionary -R /path/to/reference.fasta -O /path/to/reference.dict
  1. In order to split the variant calling process by chromosome, a locus file containg a list of all available chromosomes is used in the analysis.
  2. Mutect2 requires an .interval_list file which needs to be supplied. For GRCh38, the file is also available in the google bucket.
  3. Mutect2 also requires a modified gnomad database as a .vcf.gz. For GRCh38, the file can be retrieved from google cloud as described under 1.
  4. Add the paths of the different files to the config.yaml. The index files should be in the same directory as the reference .fasta.
  5. Make sure that the docker container versions are correct.

โœ… Testing

The workflow repository contains a small test dataset .tests/integration which can be run like so:

cd .tests/integration
snakemake -s ../../workflow/Snakefile -j1 --use-singularity

๐Ÿš€ Usage

The workflow is designed for WGS data meaning huge datasets which require a lot of compute power. For HPC clusters, it is recommended to use a cluster profile and run something like:

snakemake -s /path/to/Snakefile --profile my-awesome-profile

๐Ÿง‘โ€โš–๏ธ Rule Graph

rule_graph

wgs_somatic_pon's People

Contributors

marrip avatar

Watchers

 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.