|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3 |
| -<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>bcftools</title><link rel="stylesheet" type="text/css" href="docbook-xsl.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /></head><body><div xml:lang="en" class="refentry" title="bcftools" lang="en"><a id="idp25137360"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>bcftools — utilities for variant calling and manipulating VCFs and BCFs.</p></div><div class="refsynopsisdiv" title="Synopsis"><a id="_synopsis"></a><h2>Synopsis</h2><p><span class="strong"><strong>bcftools</strong></span> [--version|--version-only] [--help] [<span class="emphasis"><em>COMMAND</em></span>] [<span class="emphasis"><em>OPTIONS</em></span>]</p></div><div class="refsect1" title="DESCRIPTION"><a id="_description"></a><h2>DESCRIPTION</h2><p>BCFtools is a set of utilities that manipulate variant calls in the Variant |
| 3 | +<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>bcftools</title><link rel="stylesheet" type="text/css" href="docbook-xsl.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /></head><body><div xml:lang="en" class="refentry" title="bcftools" lang="en"><a id="idp25135776"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>bcftools — utilities for variant calling and manipulating VCFs and BCFs.</p></div><div class="refsynopsisdiv" title="Synopsis"><a id="_synopsis"></a><h2>Synopsis</h2><p><span class="strong"><strong>bcftools</strong></span> [--version|--version-only] [--help] [<span class="emphasis"><em>COMMAND</em></span>] [<span class="emphasis"><em>OPTIONS</em></span>]</p></div><div class="refsect1" title="DESCRIPTION"><a id="_description"></a><h2>DESCRIPTION</h2><p>BCFtools is a set of utilities that manipulate variant calls in the Variant |
4 | 4 | Call Format (VCF) and its binary counterpart BCF. All commands work
|
5 | 5 | transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.</p><p>Most commands accept VCF, bgzipped VCF and BCF with filetype detected
|
6 | 6 | automatically even when streaming from a pipe. Indexed VCF and BCF
|
7 | 7 | will work in all situations. Un-indexed VCF and BCF and streams will
|
8 | 8 | work in most, but not all situations. In general, whenever multiple VCFs are
|
9 | 9 | read simultaneously, they must be indexed and therefore also compressed.</p><p>BCFtools is designed to work on a stream. It regards an input file "-" as the
|
10 | 10 | standard input (stdin) and outputs to the standard output (stdout). Several
|
11 |
| -commands can thus be combined with Unix pipes.</p><div class="refsect2" title="VERSION"><a id="_version"></a><h3>VERSION</h3><p>This manual page was last updated <span class="strong"><strong>2019-02-24 15:39 GMT</strong></span> and refers to bcftools git version <span class="strong"><strong>1.9-104-g22f4a3a+</strong></span>.</p></div><div class="refsect2" title="BCF1"><a id="_bcf1"></a><h3>BCF1</h3><p>The BCF1 format output by versions of samtools <= 0.1.19 is <span class="strong"><strong>not</strong></span> |
| 11 | +commands can thus be combined with Unix pipes.</p><div class="refsect2" title="VERSION"><a id="_version"></a><h3>VERSION</h3><p>This manual page was last updated <span class="strong"><strong>2019-03-10 16:00 GMT</strong></span> and refers to bcftools git version <span class="strong"><strong>1.9-111-gf1ea770+</strong></span>.</p></div><div class="refsect2" title="BCF1"><a id="_bcf1"></a><h3>BCF1</h3><p>The BCF1 format output by versions of samtools <= 0.1.19 is <span class="strong"><strong>not</strong></span> |
12 | 12 | compatible with this version of bcftools. To read BCF1 files one can use
|
13 | 13 | the view command from old versions of bcftools packaged with samtools
|
14 | 14 | versions <= 0.1.19 to convert to VCF, which can then be read by
|
|
478 | 478 | </dd></dl></div><pre class="screen"> # Extract AN,AC values from an existing VCF, such 1000Genomes
|
479 | 479 | bcftools query -f'%CHROM\t%POS\t%REF\t%ALT\t%AN\t%AC\n' 1000Genomes.bcf | bgzip -c > AFs.tab.gz
|
480 | 480 |
|
481 |
| - # If the tags AN,AC are not already present, use the +fill-AN-AC plugin |
482 |
| - bcftools +fill-AN-AC 1000Genomes.bcf | bcftools query -f'%CHROM\t%POS\t%REF\t%ALT\t%AN\t%AC\n' | bgzip -c > AFs.tab.gz |
| 481 | + # If the tags AN,AC are not already present, use the +fill-tags plugin |
| 482 | + bcftools +fill-tags 1000Genomes.bcf | bcftools query -f'%CHROM\t%POS\t%REF\t%ALT\t%AN\t%AC\n' | bgzip -c > AFs.tab.gz |
483 | 483 | tabix -s1 -b2 -e2 AFs.tab.gz
|
484 | 484 |
|
485 | 485 | # Create a VCF header description, here we name the tags REF_AN,REF_AC
|
|
2075 | 2075 | </span></dt><dd>
|
2076 | 2076 | prune sites by missingness or linkage disequilibrium
|
2077 | 2077 | </dd><dt><span class="term">
|
| 2078 | +<span class="strong"><strong>remove-overlaps</strong></span> |
| 2079 | +</span></dt><dd> |
| 2080 | + remove overlapping variants and duplicate sites |
| 2081 | +</dd><dt><span class="term"> |
2078 | 2082 | <span class="strong"><strong>setGT</strong></span>
|
2079 | 2083 | </span></dt><dd>
|
2080 | 2084 | general tool to set genotypes according to rules requested by the user
|
|
2083 | 2087 | </span></dt><dd>
|
2084 | 2088 | calculates basic per-sample stats
|
2085 | 2089 | </dd><dt><span class="term">
|
| 2090 | +<span class="strong"><strong>split</strong></span> |
| 2091 | +</span></dt><dd> |
| 2092 | + split VCF by sample, creating single-sample VCFs |
| 2093 | +</dd><dt><span class="term"> |
2086 | 2094 | <span class="strong"><strong>tag2tag</strong></span>
|
2087 | 2095 | </span></dt><dd>
|
2088 | 2096 | convert between similar tags, such as GL and GP
|
|
0 commit comments