annotate pyPRADA_1.2/tools/samtools-0.1.16/bcftools/bcftools.1 @ 0:acc2ca1a3ba4

Uploaded
author siyuan
date Thu, 20 Feb 2014 00:44:58 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
1 .TH bcftools 1 "16 March 2011" "bcftools" "Bioinformatics tools"
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
2 .SH NAME
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
3 .PP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
4 bcftools - Utilities for the Binary Call Format (BCF) and VCF.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
5 .SH SYNOPSIS
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
6 .PP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
7 bcftools index in.bcf
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
8 .PP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
9 bcftools view in.bcf chr2:100-200 > out.vcf
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
10 .PP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
11 bcftools view -vc in.bcf > out.vcf 2> out.afs
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
12
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
13 .SH DESCRIPTION
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
14 .PP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
15 Bcftools is a toolkit for processing VCF/BCF files, calling variants and
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
16 estimating site allele frequencies and allele frequency spectrums.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
17
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
18 .SH COMMANDS AND OPTIONS
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
19
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
20 .TP 10
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
21 .B view
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
22 .B bcftools view
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
23 .RB [ \-AbFGNQSucgv ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
24 .RB [ \-D
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
25 .IR seqDict ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
26 .RB [ \-l
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
27 .IR listLoci ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
28 .RB [ \-s
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
29 .IR listSample ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
30 .RB [ \-i
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
31 .IR gapSNPratio ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
32 .RB [ \-t
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
33 .IR mutRate ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
34 .RB [ \-p
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
35 .IR varThres ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
36 .RB [ \-P
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
37 .IR prior ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
38 .RB [ \-1
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
39 .IR nGroup1 ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
40 .RB [ \-d
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
41 .IR minFrac ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
42 .RB [ \-U
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
43 .IR nPerm ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
44 .RB [ \-X
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
45 .IR permThres ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
46 .I in.bcf
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
47 .RI [ region ]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
48
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
49 Convert between BCF and VCF, call variant candidates and estimate allele
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
50 frequencies.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
51
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
52 .RS
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
53 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
54 .B Input/Output Options:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
55 .TP 10
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
56 .B -A
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
57 Retain all possible alternate alleles at variant sites. By default, the view
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
58 command discards unlikely alleles.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
59 .TP 10
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
60 .B -b
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
61 Output in the BCF format. The default is VCF.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
62 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
63 .BI -D \ FILE
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
64 Sequence dictionary (list of chromosome names) for VCF->BCF conversion [null]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
65 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
66 .B -F
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
67 Indicate PL is generated by r921 or before (ordering is different).
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
68 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
69 .B -G
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
70 Suppress all individual genotype information.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
71 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
72 .BI -l \ FILE
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
73 List of sites at which information are outputted [all sites]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
74 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
75 .B -N
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
76 Skip sites where the REF field is not A/C/G/T
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
77 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
78 .B -Q
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
79 Output the QCALL likelihood format
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
80 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
81 .BI -s \ FILE
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
82 List of samples to use. The first column in the input gives the sample names
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
83 and the second gives the ploidy, which can only be 1 or 2. When the 2nd column
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
84 is absent, the sample ploidy is assumed to be 2. In the output, the ordering of
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
85 samples will be identical to the one in
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
86 .IR FILE .
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
87 [null]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
88 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
89 .B -S
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
90 The input is VCF instead of BCF.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
91 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
92 .B -u
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
93 Uncompressed BCF output (force -b).
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
94 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
95 .B Consensus/Variant Calling Options:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
96 .TP 10
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
97 .B -c
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
98 Call variants using Bayesian inference. This option automatically invokes option
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
99 .BR -e .
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
100 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
101 .BI -d \ FLOAT
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
102 When
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
103 .B -v
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
104 is in use, skip loci where the fraction of samples covered by reads is below FLOAT. [0]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
105 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
106 .B -e
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
107 Perform max-likelihood inference only, including estimating the site allele frequency,
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
108 testing Hardy-Weinberg equlibrium and testing associations with LRT.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
109 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
110 .B -g
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
111 Call per-sample genotypes at variant sites (force -c)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
112 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
113 .BI -i \ FLOAT
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
114 Ratio of INDEL-to-SNP mutation rate [0.15]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
115 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
116 .BI -p \ FLOAT
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
117 A site is considered to be a variant if P(ref|D)<FLOAT [0.5]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
118 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
119 .BI -P \ STR
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
120 Prior or initial allele frequency spectrum. If STR can be
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
121 .IR full ,
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
122 .IR cond2 ,
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
123 .I flat
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
124 or the file consisting of error output from a previous variant calling
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
125 run.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
126 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
127 .BI -t \ FLOAT
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
128 Scaled muttion rate for variant calling [0.001]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
129 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
130 .B -v
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
131 Output variant sites only (force -c)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
132 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
133 .B Contrast Calling and Association Test Options:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
134 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
135 .BI -1 \ INT
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
136 Number of group-1 samples. This option is used for dividing the samples into
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
137 two groups for contrast SNP calling or association test.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
138 When this option is in use, the following VCF INFO will be outputted:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
139 PC2, PCHI2 and QCHI2. [0]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
140 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
141 .BI -U \ INT
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
142 Number of permutations for association test (effective only with
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
143 .BR -1 )
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
144 [0]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
145 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
146 .BI -X \ FLOAT
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
147 Only perform permutations for P(chi^2)<FLOAT (effective only with
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
148 .BR -U )
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
149 [0.01]
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
150 .RE
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
151
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
152 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
153 .B index
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
154 .B bcftools index
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
155 .I in.bcf
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
156
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
157 Index sorted BCF for random access.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
158 .RE
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
159
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
160 .TP
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
161 .B cat
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
162 .B bcftools cat
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
163 .I in1.bcf
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
164 .RI [ "in2.bcf " [ ... "]]]"
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
165
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
166 Concatenate BCF files. The input files are required to be sorted and
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
167 have identical samples appearing in the same order.
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
168 .RE
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
169
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
170 .SH BCFTOOLS SPECIFIC VCF TAGS
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
171
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
172 .TS
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
173 center box;
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
174 cb | cb | cb
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
175 l | l | l .
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
176 Tag Format Description
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
177 _
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
178 AF1 double Max-likelihood estimate of the site allele frequency (AF) of the first ALT allele
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
179 CI95 double[2] Equal-tail Bayesian credible interval of AF at the 95% level
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
180 DP int Raw read depth (without quality filtering)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
181 DP4 int[4] # high-quality reference forward bases, ref reverse, alternate for and alt rev bases
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
182 FQ int Consensus quality. Positive: sample genotypes different; negative: otherwise
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
183 MQ int Root-Mean-Square mapping quality of covering reads
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
184 PC2 int[2] Phred probability of AF in group1 samples being larger (,smaller) than in group2
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
185 PCHI2 double Posterior weighted chi^2 P-value between group1 and group2 samples
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
186 PV4 double[4] P-value for strand bias, baseQ bias, mapQ bias and tail distance bias
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
187 QCHI2 int Phred-scaled PCHI2
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
188 RP int # permutations yielding a smaller PCHI2
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
189 .TE