GithubHelp home page GithubHelp logo

snv-calling-workflow's Introduction

SNV Calling Workflow

5

Tools need to be installed:

  • Workflow "Language": GNU Make - Version 4.1
  • Data accession: SRAToolkit - Version 2.8.2
  • Quality Trimming: Sickle - Version 1.33
  • Mapping:
  • SNV Calling and preprocessing
    • Samtools - Version 1.6
    • bcftools - Version 1.6
    • GATK - Version 3.8
      • GenomeAnalysisTK.jar should be in the same location as the Makefile
    • Picard - Version 2.17.1
      • picard.jar should be in the same location as the Makefile
    • Java - Version 1.8

As well as wget and gunzip. The workflow was tested on a Ubuntu 16.04 environment.

Apply the workflow

The workflow itself is based on GNU Make and can be easily called by:

make -f Makefile MAPPER="name_of_the_mapper" CALLER="name_of_the_caller" SRA="sra_number" REF_URL="ref_genome_ftp_url" REF_GENOME_FILE="unzipped_ref_genome_file_name"

The user can choose between two mappers, bwa and bowtie2, as well as between two variant calling tools, samtools/bcftools and gatk. In the following example call you use bwa to do the mapping and gatk to do the variant calling. Therefore we take the e-coli genome as the reference genome and the raw reads contained in the SRA number SRR3736639:

make -f Makefile MAPPER="bwa" CALLER="bcftools" SRA="SRR3736639" REF_URL="ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/005/845/GCF_000005845.2_ASM584v2/GCF_000005845.2_ASM584v2_genomic.fna.gz" REF_GENOME_FILE="GCF_000005845.2_ASM584v2_genomic.fna"

Attention:

  • The SRA samples should contain both forward and reverse strands!
  • If files are already existing in the folders the workflow generates, they wont be computed again. This allows an easy continuation of the computations
    • BUT if you cancel the workflow right in between you should delete the corrupt files by hand!

Apply the workflow on multiple samples

In this case an attached bash-script (run_workflow.sh) can be easily adjusted to perform the workflow on multiple SRA samples with different map and variant call tools. This is an example of how the adjustment could look like:

ref_url="ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/005/845/GCF_000005845.2_ASM584v2/GCF_000005845.2_ASM584v2_genomic.fna.gz"

ref_file="GCF_000005845.2_ASM584v2_genomic.fna"

declare -a mappers=("bwa"
    "bowtie2"
    )

declare -a callers=("bcftools"
    "gatk"
    )

declare -a sras=("SRR3736622" "SRR3736623")

and finally run the bash script in the same folder as the Makefile of the workflow:

./run_workflow.sh

This would run the workflow for the two given samples four times: once with bwa und bcftools, once with bowtie2 and bcftools, once with bwa and gatk and last but not least with bowtie2 and gatk.

The Output

The workflow delivers a .vcf file for the corresponding SRA sample and its reference genome. If you use gatk for the variant calling the resulting .vfc file only contains the snps! The .vfc file generated by bcftools contains everything.

snv-calling-workflow's People

Contributors

julianspaeth 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.