Giter VIP home page Giter VIP logo

variant-filter's Introduction

variant-filter

A false-positive filter for variants called from massively parallel sequencing

Update (5/30/2017): This repo is no longer maintained. Use the fpfilter.pl at https://github.com/genome/fpfilter-tool instead.

Quick start

Download the fpfilter.pl script, and view the detailed usage manual:

curl -LO https://github.com/ckandoth/variant-filter/archive/master.zip; unzip master.zip
perl variant-filter-master/fpfilter.pl --help

Given snvs.vcf a single sample VCF listing SNVs, generate a list of variant loci in a subfolder:

mkdir fpfilter
perl -ane 'print join("\t",@F[0,1,1])."\n" unless(m/^#/)' snvs.vcf > fpfilter/snvs.var

Given tumor.bam, a BAM file containing the SNVs, and its reference FASTA grch37.fa, run bam-readcount:

bam-readcount -q1 -b15 -w1 -l fpfilter/snvs.var -f grch37.fa tumor.bam > fpfilter/snvs.readcount

Run the fpfilter.pl script using the readcounts as an input:

perl fpfilter.pl --var-file snvs.vcf --readcount-file fpfilter/snvs.readcount --output-file fpfilter/snvs.fpfilter

The last two columns of the resulting file snvs.fpfilter contains a VCF friendly FILTER code, and an extra column with details.

Provenance

The original fpfilter.pl script for filtering Single Nucleotide Variants (SNVs) was written by Dan Koboldt for VarScan, and Dave Larson for SomaticSniper. The latest version of the script is maintained by Dan, Dave, and other developers at the The Genome Institute, as a Perl module named FilterFalsePositives.pm. They even wrote a module named FilterFalseIndels.pm for small indels. However, those modules are not very portable, and have dependencies on their internal codebase. So this repository was my attempt to remove those dependencies, make it easier to use, and add other improvements like VCF support. More recently, there have been forks of this repo, and this one is what I recommend using, which also does non-complex indels.

Authors

Cyriac Kandoth ([email protected])
Dan Koboldt, Analysis Manager, Human Genetics Group, The Genome Institute
David Larson, Director of Bioinformatics, The Genome Institute

variant-filter's People

Contributors

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