11'\" t
22.\" Title: bcftools
33.\" Author: [see the "AUTHOR(S)" section]
4- .\" Generator: Asciidoctor 2.0.16.dev
5- .\" Date: 2023-02-21
4+ .\" Generator: Asciidoctor 2.0.16
5+ .\" Date: 2023-03-10
66.\" Manual: \ \&
77.\" Source: \ \&
88.\" Language: English
99.\"
10- .TH "BCFTOOLS" "1" "2023-02-21 " "\ \& " "\ \& "
10+ .TH "BCFTOOLS" "1" "2023-03-10 " "\ \& " "\ \& "
1111.ie \n( .g .ds Aq \(aq
1212.el .ds Aq '
1313.ss \n[ .ss ] 0
@@ -51,10 +51,10 @@ standard input (stdin) and outputs to the standard output (stdout). Several
5151commands can thus be combined with Unix pipes.
5252.SS "VERSION"
5353.sp
54- This manual page was last updated \fB 2023 \- 02 \- 21 \fP and refers to bcftools git version \fB 1.17 \fP .
54+ This manual page was last updated \fB 2023 \- 03 \- 10 08:27 GMT \fP and refers to bcftools git version \fB 1.17 \- 10 \- g9655089+ \fP .
5555.SS "BCF1"
5656.sp
57- The BCF1 format output by versions of samtools <= 0.1.19 is \fB not \fP
57+ The obsolete BCF1 format output by versions of samtools <= 0.1.19 is \fB not \fP
5858compatible with this version of bcftools. To read BCF1 files one can use
5959the view command from old versions of bcftools packaged with samtools
6060versions <= 0.1.19 to convert to VCF, which can then be read by
@@ -75,6 +75,9 @@ done with \fIbcftools view\fP. Users are now required to choose between the old
7575samtools calling model (\fI \- c/ \-\- consensus \- caller \fP ) and the new multiallelic
7676calling model (\fI \- m/ \-\- multiallelic \- caller \fP ). The multiallelic calling model
7777is recommended for most tasks.
78+ .SS "FILTERING EXPRESSIONS"
79+ .sp
80+ See \fB EXPRESSIONS \fP
7881.SH "LIST OF COMMANDS"
7982.sp
8083For a full list of available commands, run \fB bcftools \fP without arguments. For a full
@@ -344,6 +347,17 @@ Some helper scripts are bundled with the bcftools code.
344347. sp -1
345348. IP \(bu 2.3
346349.\}
350+ \fB gff2gff \fP .. converts a GFF file to the format required by \fB csq \fP
351+ .RE
352+ .sp
353+ .RS 4
354+ .ie n \{\
355+ \h '-04' \(bu \h '+03' \c
356+ .\}
357+ .el \{\
358+ . sp -1
359+ . IP \(bu 2.3
360+ .\}
347361\fB plot \- vcfstats \fP .. plots the output of \fB stats \fP
348362.RE
349363.SH "COMMANDS AND OPTIONS"
@@ -597,6 +611,11 @@ Same as \fB\-\-regions\-overlap\fP but for \fB\-t/\-T\fP.
597611Use multithreading with \fI INT \fP worker threads. The option is currently used only for the compression of the
598612output stream, only when \fI \-\- output \- type \fP is \fI b \fP or \fI z \fP . Default: 0.
599613.RE
614+ .sp
615+ \fB \-\- write \- index \fP
616+ .RS 4
617+ Automatically index the output files. Can be used only for compressed BCF and VCF output.
618+ .RE
600619.SS "bcftools annotate \fI [OPTIONS] \fP \fI FILE \fP "
601620.sp
602621Add or remove annotations.
@@ -881,6 +900,11 @@ except GT. To remove all INFO tags except "FOO" and "BAR", use
881900"INFO" can be abbreviated to "INF" and "FORMAT" to "FMT".
882901.RE
883902.sp
903+ \fB \-\- write \- index \fP
904+ .RS 4
905+ Automatically index the output file
906+ .RE
907+ .sp
884908\fB Examples: \fP
885909.sp
886910.if n .RS 4
@@ -1017,6 +1041,11 @@ see \fBCommon Options\fP
10171041.RS 4
10181042see \fB Common Options \fP
10191043.RE
1044+ .sp
1045+ \fB \-\- write \- index \fP
1046+ .RS 4
1047+ Automatically index the output file
1048+ .RE
10201049.SS "Input/output options:"
10211050.sp
10221051\fB \- A, \-\- keep \- alts \fP
@@ -1401,6 +1430,11 @@ see \fBCommon Options\fP
14011430.RS 4
14021431see \fB Common Options \fP
14031432.RE
1433+ .sp
1434+ \fB \-\- write \- index \fP
1435+ .RS 4
1436+ Automatically index the output file
1437+ .RE
14041438.SS "bcftools consensus \fI [OPTIONS] \fP \fI FILE \fP "
14051439.sp
14061440Create consensus sequence by applying VCF variants to a reference fasta file.
@@ -1617,6 +1651,11 @@ see \fBCommon Options\fP
16171651.RS 4
16181652see \fB Common Options \fP
16191653.RE
1654+ .sp
1655+ \fB \-\- write \- index \fP
1656+ .RS 4
1657+ Automatically index the output file
1658+ .RE
16201659.SS "VCF output options:"
16211660.sp
16221661\fB \-\- no \- version \fP
@@ -1987,6 +2026,7 @@ transcripts in malformatted GFFs with incorrect phase
19872026.RS 4
19882027GFF3 annotation file (required), such as \c
19892028.URL " ftp://ftp.ensembl.org/pub/current_gff3/homo_sapiens" "" " ."
2029+ The script \fB gff2gff \fP can help with conversion from non\- standard GFF formats.
19902030An example of a minimal working GFF file:
19912031.RE
19922032.sp
@@ -2137,6 +2177,11 @@ see \fBCommon Options\fP
21372177see \fB Common Options \fP
21382178.RE
21392179.sp
2180+ \fB \-\- write \- index \fP
2181+ .RS 4
2182+ Automatically index the output file
2183+ .RE
2184+ .sp
21402185\fB Examples: \fP
21412186.sp
21422187.if n .RS 4
@@ -2366,6 +2411,11 @@ see \fBCommon Options\fP
23662411.RS 4
23672412see \fB Common Options \fP
23682413.RE
2414+ .sp
2415+ \fB \-\- write \- index \fP
2416+ .RS 4
2417+ Automatically index the output file
2418+ .RE
23692419.SS "bcftools gtcheck [\fI OPTIONS \fP ] [\fB \- g \fP \fI genotypes.vcf.gz \fP ] \fI query.vcf.gz \fP "
23702420.sp
23712421Checks sample identity. The program can operate in two modes. If the \fB \- g \fP
@@ -2676,6 +2726,11 @@ see \fBCommon Options\fP
26762726list of input files to output given as 1\- based indices. With \fB \- p \fP and no
26772727\fB \- w \fP , all files are written.
26782728.RE
2729+ .sp
2730+ \fB \-\- write \- index \fP
2731+ .RS 4
2732+ Automatically index the output file. This is done automatically with the \fB \- p \fP option.
2733+ .RE
26792734.SS "Examples:"
26802735.sp
26812736Create intersection and complements of two sets saving the output in dir/*
@@ -2876,6 +2931,11 @@ see \fBCommon Options\fP
28762931.RS 4
28772932see \fB Common Options \fP
28782933.RE
2934+ .sp
2935+ \fB \-\- write \- index \fP
2936+ .RS 4
2937+ Automatically index the output file
2938+ .RE
28792939.SS "bcftools mpileup [\fI OPTIONS \fP ] \fB \- f \fP \fI ref.fa \fP \fI in.bam \fP [\fI in2.bam \fP [...]]"
28802940.sp
28812941Generate VCF or BCF containing genotype likelihoods for one or multiple
@@ -3209,6 +3269,11 @@ BQB.
32093269.fi
32103270.if n .RE
32113271.RE
3272+ .sp
3273+ \fB \-\- write \- index \fP
3274+ .RS 4
3275+ Automatically index the output file
3276+ .RE
32123277.SS "Options for SNP/INDEL genotype likelihood computation"
32133278.sp
32143279\fB \- X, \-\- config \fP \fI STR \fP
@@ -3528,6 +3593,11 @@ see \fBCommon Options\fP
35283593maximum distance between two records to consider when locally
35293594sorting variants which changed position during the realignment
35303595.RE
3596+ .sp
3597+ \fB \-\- write \- index \fP
3598+ .RS 4
3599+ Automatically index the output file
3600+ .RE
35313601.SS "bcftools [plugin \fI NAME \fP |+\fI NAME \fP ] \fI [OPTIONS] \fP \fI FILE \fP \(em \fI [PLUGIN OPTIONS] \fP "
35323602.sp
35333603A common framework for various utilities. The plugins can be used
@@ -3601,6 +3671,11 @@ see \fBCommon Options\fP
36013671.RS 4
36023672see \fB Common Options \fP
36033673.RE
3674+ .sp
3675+ \fB \-\- write \- index \fP
3676+ .RS 4
3677+ Automatically index the output file
3678+ .RE
36043679.SS "Plugin options:"
36053680.sp
36063681\fB \- h, \-\- help \fP
@@ -4725,6 +4800,11 @@ see \fBCommon Options\fP
47254800.RS 4
47264801Use this directory to store temporary files
47274802.RE
4803+ .sp
4804+ \fB \-\- write \- index \fP
4805+ .RS 4
4806+ Automatically index the output file
4807+ .RE
47284808.SS "bcftools stats [\fI OPTIONS \fP ] \fI A.vcf.gz \fP [\fI B.vcf.gz \fP ]"
47294809.sp
47304810Parses VCF or BCF and produces text file stats which is suitable for machine
@@ -4943,6 +5023,11 @@ see \fBCommon Options\fP
49435023.RS 4
49445024see \fB Common Options \fP
49455025.RE
5026+ .sp
5027+ \fB \-\- write \- index \fP
5028+ .RS 4
5029+ Automatically index the output file
5030+ .RE
49465031.SS "Subset options:"
49475032.sp
49485033\fB \- a, \-\- trim \- alt \- alleles \fP
@@ -5137,7 +5222,7 @@ important libraries used by bcftools.
51375222.SS "bcftools [\fI \-\- version \- only \fP ]"
51385223.sp
51395224Display the full bcftools version number in a machine\- readable format.
5140- .SH "EXPRESSIONS"
5225+ .SH "FILTERING EXPRESSIONS"
51415226.sp
51425227These filtering expressions are accepted by most of the commands.
51435228.sp
@@ -5919,7 +6004,18 @@ bcftools view \-i \*(Aq%ID!="." & MAF[0]<0.01\*(Aq
59196004.if n .RE
59206005.sp
59216006Please refer to the documentation of your shell for details.
5922- .SH "SCRIPTS AND OPTIONS"
6007+ .SH "SCRIPTS"
6008+ .SS "gff2gff"
6009+ .sp
6010+ Attempts to fix a GFF file to be correctly parsed by \fB csq \fP .
6011+ .sp
6012+ .if n .RS 4
6013+ .nf
6014+ .fam C
6015+ zcat in.gff.gz | gff2gff | gzip \- c > out.gff.gz
6016+ .fam
6017+ .fi
6018+ .if n .RE
59236019.SS "plot\- vcfstats [\fI OPTIONS \fP ] \fI file.vchk \fP [...]"
59246020.sp
59256021Script for processing output of \fB bcftools stats \fP . It can merge
@@ -6013,8 +6109,10 @@ Please report any bugs you encounter on the github website: \c
60136109.sp
60146110Heng Li from the Sanger Institute wrote the original C version of htslib,
60156111samtools and bcftools. Bob Handsaker from the Broad Institute implemented the
6016- BGZF library. Petr Danecek, Shane McCarthy and John Marshall are maintaining
6017- and further developing bcftools. Many other people contributed to the program
6112+ BGZF library. Petr Danecek is maintaining and further developing bcftools, together
6113+ with the rest of the \c
6114+ .URL " https://www.sanger.ac.uk/tool/samtools\- bcftools\- htslib" " samtools team" " ."
6115+ Many other people contributed to the program
60186116and to the file format specifications, both directly and indirectly by
60196117providing patches, testing and reporting bugs. We thank them all.
60206118.SH "RESOURCES"
0 commit comments