Code Monkey home page Code Monkey logo

ngstools's Introduction

Single-sample oriented version of the new ABGC mapping pipeline. Very early, rough draft - handle with care: many components are still to be validated. Note that access to sample database (MySQL) and access to primary data is required for the script to run!

The python script will create a shell script that contains various steps to process and map fastq data. The python scripts takes an individual id as argument (-1). It will also check if data is in Illumina or Sanger (offset +64 or +33) quality coding, and add translation to sanger if needed. For an example of the resulting shell script, see testscripts runLW22F08.sh and runTA01F19.sh.

example usage: % python3 ABGC_mapping_v2.py -i LW22F08 -a /media/InternBkp1/repos/ABGSA/ -r /media/InternBkp1/repos/refs/Sus_scrofa.Sscrofa10.2.72.dna.toplevel.fa

This will create a file 'runLW22F08.sh', which can be submitted using SGE (qsub)

for more information: % python3 ABGC_mapping_v2.py -h

The script is designed to:

  • pull data from the repositories
  • prepare data for mapping:
    • optional md5 checking against databased checksum
    • create temporary repository
    • trimming by sickle
    • convert from Illumina fq to Sanger fq, if needed (automated detection)
  • mapping using BWA mem, BWA aln, or Mosaik (only one choice per run)
  • sort BAM files
  • merge all BAM files of same individual, and reheader
  • do old-school variant calling using samtools pileup

Still to validate:

  • local re-alignment using GATK
  • dedup (Picard or Samtools - Samtools is default currently)
  • recalibration
  • variant calling (samtools mpileup)
  • variant calling (GATK UnifiedGenotyper)

To do:

  • filtering of BAM files based on mapping Q (current min mapping Q of 10 in BWA-mem, need to evaluate)
  • intersection of variants by Samtools and GATK (maybe)
  • Variant Effect Predictor (VEP)
  • Automated checking against 60K db
  • better reporting of BAM (filesize, checksums, coverage, etc) and variant stats (numsnps etc)
    • consider reporting immediately back to MySQL db

ngstools's People

Contributors

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