Giter Site home page Giter Site logo

hapviz's Introduction

hapviz: region-bounded haplotype pileup visualization for BAM files

it all happens in the terminal!

    % hapviz --help
    usage: hapviz [options] bam file [... bam file]

    options:
        -b, --bam           bam file to from which to extract reads
                            (may also be specified as positional arguments)
        -r, --region        region from which to extract grouped reads
        -a, --show-all      When visualizing, show all alignments, not just variant ones.
        -f, --reference     FASTA reference against which alignments have been aligned
        -q, --min-base-quality
                            minimum base quality required for all bases in a read

    Displays haplotype groups from the specified region across the BAM files provided as input.


Note: If you list 'stdin' as one of the BAM files, you can pipe BAM directly into hapviz.

This (slightly modified) example output shows how each indel haplotype is
grouped, and the reads from it are aligned to a reference sequence.  Relative
deletions between the reference and reads are replaced by '-'.


17 i:16817:GGCAC
                      16788   CCCAGCACTTCAGGGCTTTAGCTGGGAGGGA-----GGCAGTCCACAGGAATGAATTCATCACT   16862
sample08 31M5I34M              CCAGCACTTCAGGGCTTTAGCTGGGAGGGAGGCACGGCAGTCCACAGGAAT
sample03 30M5I35M               CAGCACTTCAGGGCTTTAGCTGGGAGGGAGGCACGGCAGTCCACAGGAATG
sample02 27M5I38M                 GCACTTCAGGGCTTTAGCTGGGAGGGAGGCACGGCAGTCCACAGGAATGAAT
sample05 26M5I39M                  CACTTCAGGGCTTTAGCTGGGAGGGAGGCACGGCAGTCCACAGGAATGAATT
sample05 24M5I41M                    CTTCAGGGCTTTAGCTGGGAGGGAGGCACGGCAGTCCACAGGAATGAATTCA
sample07 21M5I44M                       CAGGGCTTTAGCTGGGAGGGAGGCACGGCAGTCCACAGGAATGAATTCATCA
sample07 21M5I44M                       CAGGGCTTTAGCTGGGAGGGAGGCACGGCAGTCCACAGGAATGAATTCATCA
sample03 19M5I46M                         GGGCTTTAGCTGGGAGGGAGGCACGGCAGTCCACAGGAATGAATTCATCACT
sample08 14M5I51M                              TTAGCTGGGAGGGAGGCACGGCAGTCCACAGGAATGAATTCATCACT
--------------------------------------------------------------
1 i:16817:GGCAG
                      16765   GTGCTGCCCTCTCCCCAGCACTTCAGGGCTTTAGCTGGGAGGGA-----GGCAGTCCACAGG   16829
sample03 52M5I13M             GTGCTGCCCTCTCCCCAGCACTTCAGGGCTTTAGCTGGGAGGGAGGCAGGGCAGTCCACAGG
--------------------------------------------------------------
1 i:16821:T
                      16758   ATACAGGGTGCTGCCCTCTCCCCAGCACTTCAGGGCTTTAGCTGGGAGGGAGGCA-GTC   16823
sample03 63M1I3M3S            ATACAGGGTGCTGCCCTCTCCCCAGCACTTCAGGGCTTTAGCTGGGAGGGAGGCATGTC
--------------------------------------------------------------


Enjoy!


author: erik garrison <[email protected]>
license: free

hapviz's People

Contributors

ekg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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