forked from samtools/bcftools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bcftools.1
129 lines (118 loc) · 3.91 KB
/
bcftools.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
.TH bcftools 1 "22 October 2013" "bcftools-0.2.0" "Bioinformatics tools"
.SH NAME
.PP
bcftools - Utilities for calling variants and manipulating VCFs and BCFs
.SH SYNOPSIS
.PP
.B bcftools
[\fICOMMAND\fR] [\fIOPTIONS\fR]
.br
.B bcftools
.br
.B bcftools
[\fICOMMAND\fR]
.SH DESCRIPTION
.PP
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.
Bcftools is designed to work on a stream. It regards an input file "-"
as the standard input (stdin) and an output file "-" as the standard
output (stdout). Several commands can thus be combined with Unix
pipes.
.SH COMMANDS
For a full list of available commands, run
.B bcftools
without arguments:
.TP 10
.B tabix
tabix for BGZF'd BED, GFF, SAM, VCF and more
.TP 10
.B index
index BCF
.TP 10
.B call
SNP/indel calling, this is the former \fBview\fR command
.TP 10
.B filter
filter VCF/BCF files using fixed thresholds
.TP 10
.B gtcheck
tool for detecting swaps and contaminations
.TP 10
.B isec
intersections of VCF/BCF files
.TP 10
.B merge
merge VCF/BCF files
.TP 10
.B norm
normalize indels to common representation
.TP 10
.B query
transform VCF/BCF into user-defined formats
.TP 10
.B stats
produce VCF/BCF stats (former vcfcheck)
.TP 10
.B subset
subset and filter VCF/BCF
.TP 10
.B view
VCF<->BCF conversion
.SH OPTIONS
For a full list of options, run
.B bcftools
[\fICOMMAND\fR]
without arguments.
.SS "Common Options"
.IP "\fB-o, --output-type \fIb\fR|\fIu\fR|\fIz\fR|\fIv\fR" 4
Output compressed BCF (\fIb\fR), uncompressed BCF (\fIu\fR), compressed VCF (\fIz\fR), uncompressed VCF (\fIv\fR).
.IP "\fB-r, --regions \fIfile\fR|\fIchr\fR|\fIchr:from-to\fR[,...]" 4
Regions can be specified either on command line or in a tab-delimited file.
The columns of the tab-delimited file are: CHROM, POS_FROM, and, optionally, POS_TO.
Multiple regions can be given, one per line when reading from a file or
separated by commas when specified on command line.
All positions are 1-based and inclusive. Note that sequence names must match exactly, "chr20" is not the same as "20".
This option requires indexed VCF/BCF files.
.IP "\fB-t, --targets \fIfile\fR|\fIchr\fR|\fIchr:from-to\fR[,...]" 4
Same as \fB-r, --regions\fR, but the next position is accessed by streaming the whole VCF/BCF rather than using
the tbi/csi index. With the \fBcall -C \fIalleles\fR command, third column of the \fItargets\fR file must be comma-separated
list of alleles, starting with the reference allele.
.SS "Command-specific options"
.BR
.IP "\fBbcftools call\fR [\fIOPTIONS\fR]"
.RS 4
.IP "\fB-C, --constrain\fR \fIalleles\fR|\fItrio\fR"
\fIalleles\fR, call genotypes given alleles. See also \fB-t, --targets\fR.
.IP ""
\fItrio\fR, ..
.IP "\fB-s, --samples\fR \fIfile\fR|\fIlist\fR"
.RE
.P
.IP "\fBbcftools query\fR [\fIOPTIONS\fR]"
.SH EXAMPLES
todo
.SH AUTHORS
.PP
Heng Li from the Sanger Institute wrote the original C version of htslib,
samtools and bcftools. Bob Handsaker from the Broad Institute implemented the
BGZF library. John Marshall and Petr Danecek are maintaining and further
developing the package.
Many other people contributed to the file format specifications and to the
program, both directly and indirectly by providing patches, testing and reporting
bugs.
.SH BUG REPORTS
.PP
Please report any bugs you encounter on the github website: <http://github.com/samtools/bcftools>
.SH SEE ALSO
.PP
Bcftools documentation: <http://vcftools.sourceforge.net/htslib.html>
.br
Bcftools website: <http://github.com/samtools/bcftools>
.br
Samtools website: <http://github.com/samtools/samtools>
.br
HTSlib website: <http://github.com/samtools/htslib>
.br
VCFtools website with stable link to VCF specification: <http://vcftools.sourceforge.net>