Code Monkey home page Code Monkey logo

vcf2gvcf's Introduction

About

Need to convert a VCF into a gVCF so you can combine other data that wasn't generated by GATK? Well, this script is what you need.

Providing a VCF and a target BED file, this script will transform your plain single sample VCF into a GVCF (sort of). Rather than doing it correctly (which would be a more complicated process), this approach instead assumes that you have adequate coverage in your BED file. It will then add in your pre-specified values of GL, PL, GQ, and MIN_DP fields.

usage: main.py [-h] -v VCF -b BED -f FASTA [-o OUTNAME] [-M MIN_DEPTH] [-P PL]
               [-V {DEBUG,INFO,WARNING,ERROR,CRITICAL}]

optional arguments:
  -h, --help            show this help message and exit
  -v VCF, --vcf VCF     VCF File to convert
  -b BED, --bed BED     Target BED file
  -f FASTA, --fasta FASTA
                        Where is the reference genome (FASTA) file?
  -o OUTNAME, --outname OUTNAME
                        What should the output file name be? [output.g.vcf]
  -M MIN_DEPTH, --min_depth MIN_DEPTH
                        Dummy value for min_depth [20]
  -P PL, --pl PL        Dummy value for PL (Non zero genotypes) [99]
  -V {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --verbose {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Set the logging level [INFO]

vcf2gvcf's People

Contributors

steven-n-hart avatar

Watchers

James Cloos 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.