Difference between revisions of "BCFtools"

From HPC users
Jump to navigationJump to search
Line 13: Line 13:
== List of available commands ==
== List of available commands ==


For a full list of available commands, run bcftools without arguments. For a full list of available options, run bcftools COMMAND without arguments.
For a full list of available commands, run bcftools without arguments. For a full list of available options, run bcftools COMMAND (eg. "bcftools annotate") without arguments.


* '''annotate''': edit VCF files, add or remove annotations
* '''annotate''': edit VCF files, add or remove annotations

Revision as of 10:09, 3 January 2017

Introduction

BCFtools is a set of utilities that manipulate variant calls in the Variant Call Format (VCF) and its binary counterpart BCF. All commands work transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.

Most commands accept VCF, bgzipped VCF and BCF with filetype detected automatically even when streaming from a pipe. Indexed VCF and BCF will work in all situations. Un-indexed VCF and BCF and streams will work in most, but not all situations. In general, whenever multiple VCFs are read simultaneously, they must be indexed and therefore also compressed.

BCFtools is designed to work on a stream. It regards an input file "-" as the standard input (stdin) and outputs to the standard output (stdout). Several commands can thus be combined with Unix pipes.

Version

The currently installed version is 1.3.1.

List of available commands

For a full list of available commands, run bcftools without arguments. For a full list of available options, run bcftools COMMAND (eg. "bcftools annotate") without arguments.

  • annotate: edit VCF files, add or remove annotations
  • call: SNP/indel calling (former "view")
  • cnv: Copy Number Variation caller
  • concat: concatenate VCF/BCF files from the same set of samples
  • consensus: create consensus sequence by applying VCF variants
  • convert: convert VCF/BCF to other formats and back
  • csq: haplotype aware consequence caller
  • filter: filter VCF/BCF files using fixed thresholds
  • gtcheck: check sample concordance, detect sample swaps and contamination
  • index: index VCF/BCF
  • isec: intersections of VCF/BCF files
  • merge: merge VCF/BCF files files from non-overlapping sample sets
  • mpileup: multi-way pileup producing genotype likelihoods
  • norm: normalize indels
  • plugin: run user-defined plugin
  • polysomy: detect contaminations and whole-chromosome aberrations
  • query: transform VCF/BCF into user-defined formats
  • reheader: modify VCF/BCF header, change sample names
  • roh: identify runs of homo/auto-zygosity
  • stats: produce VCF/BCF stats (former vcfcheck)
  • view: subset, filter and convert VCF and BCF files

Source

The full documentation can be found here.