Skip to content

Commit e2815b4

Browse files
committed
Update bcftools/roh and roh-viz documentation
1 parent 68f13f2 commit e2815b4

File tree

4 files changed

+188
-15
lines changed

4 files changed

+188
-15
lines changed

doc/bcftools.1

Lines changed: 76 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.\" Title: bcftools
33
.\" Author: [see the "AUTHOR(S)" section]
44
.\" Generator: Asciidoctor 2.0.15.dev
5-
.\" Date: 2024-12-16
5+
.\" Date: 2024-12-28
66
.\" Manual: \ \&
77
.\" Source: \ \&
88
.\" Language: English
99
.\"
10-
.TH "BCFTOOLS" "1" "2024-12-16" "\ \&" "\ \&"
10+
.TH "BCFTOOLS" "1" "2024-12-28" "\ \&" "\ \&"
1111
.ie \n(.g .ds Aq \(aq
1212
.el .ds Aq '
1313
.ss \n[.ss] 0
@@ -51,7 +51,7 @@ standard input (stdin) and outputs to the standard output (stdout). Several
5151
commands can thus be combined with Unix pipes.
5252
.SS "VERSION"
5353
.sp
54-
This manual page was last updated \fB2024\-12\-16 09:31 GMT\fP and refers to bcftools git version \fB1.21\-58\-g6559a12a+\fP.
54+
This manual page was last updated \fB2024\-12\-28 22:19 GMT\fP and refers to bcftools git version \fB1.21\-61\-g68f13f2e+\fP.
5555
.SS "BCF1"
5656
.sp
5757
The obsolete BCF1 format output by versions of samtools <= 0.1.19 is \fBnot\fP
@@ -347,7 +347,7 @@ Some helper scripts are bundled with the bcftools code.
347347
. sp -1
348348
. IP \(bu 2.3
349349
.\}
350-
\fBgff2gff\fP .. converts a GFF file to the format required by \fBcsq\fP
350+
\fBgff2gff\fP .. converts a GFF file to the format required by \fBbcftools csq\fP
351351
.RE
352352
.sp
353353
.RS 4
@@ -358,7 +358,18 @@ Some helper scripts are bundled with the bcftools code.
358358
. sp -1
359359
. IP \(bu 2.3
360360
.\}
361-
\fBplot\-vcfstats\fP .. plots the output of \fBstats\fP
361+
\fBplot\-vcfstats\fP .. plots the output of \fBbcftools stats\fP
362+
.RE
363+
.sp
364+
.RS 4
365+
.ie n \{\
366+
\h'-04'\(bu\h'+03'\c
367+
.\}
368+
.el \{\
369+
. sp -1
370+
. IP \(bu 2.3
371+
.\}
372+
\fBroh\-viz\fP .. creates HTML/JavaScript visualization of \fBbcftools roh\fP
362373
.RE
363374
.SH "COMMANDS AND OPTIONS"
364375
.SS "Common Options"
@@ -5079,7 +5090,8 @@ see \fBCommon Options\fP
50795090
.SS "bcftools roh [\fIOPTIONS\fP] \fIfile.vcf.gz\fP"
50805091
.sp
50815092
A program for detecting runs of homo/autozygosity. Only bi\-allelic sites
5082-
are considered.
5093+
are considered. The results can be visualized in HTML/JavaScript using
5094+
the \fBroh\-viz\fP script.
50835095
.SS "The HMM model:"
50845096
.sp
50855097
.if n .RS 4
@@ -5836,6 +5848,64 @@ cd outdir && python plot.py && pdflatex summary.tex
58365848
.fam
58375849
.fi
58385850
.if n .RE
5851+
.SS "roh\-viz [\fIOPTIONS\fP]"
5852+
.sp
5853+
Script for visualizing the output of \fBbcftools roh\fP. It creates
5854+
a HTML/JavaScript document which can be interactively viewed in your favorite
5855+
web browser.
5856+
.sp
5857+
\fB\-i, \-\-RoH\-file\fP \fIFILE\fP
5858+
.RS 4
5859+
Output of bcftools/roh
5860+
.RE
5861+
.sp
5862+
\fB\-l, \-\-min\-length\fP \fINUM\fP
5863+
.RS 4
5864+
Mimimum length of ROH [1e6]
5865+
.RE
5866+
.sp
5867+
\fB\-o, \-\-output\fP \fIFILE\fP
5868+
.RS 4
5869+
HTML output file
5870+
.RE
5871+
.sp
5872+
\fB\-r, \-\-regions\fP \fILIST\fP
5873+
.RS 4
5874+
List of chromosomes/regions
5875+
.RE
5876+
.sp
5877+
\fB\-s, \-\-samples\fP \fILIST\fP
5878+
.RS 4
5879+
List of samples to show
5880+
.RE
5881+
.sp
5882+
\fB\-v, \-\-VCF\-file\fP \fIFILE\fP
5883+
.RS 4
5884+
VCF file to determine homozygosity rate
5885+
.RE
5886+
.sp
5887+
\fB\-h, \-?, \-\-help\fP
5888+
This help message
5889+
.sp
5890+
\fBExample:\fP
5891+
.sp
5892+
.if n .RS 4
5893+
.nf
5894+
.fam C
5895+
# Find RoH regions
5896+
bcftools roh \-\-AF\-dflt 0.5 \-G 30 \-Or \-o roh.txt file.bcf
5897+
.fam
5898+
.fi
5899+
.if n .RE
5900+
.sp
5901+
.if n .RS 4
5902+
.nf
5903+
.fam C
5904+
# Create HTML/JavaScript visualization
5905+
roh\-viz \-r roh.txt \-v file.bcf \-o output.html
5906+
.fam
5907+
.fi
5908+
.if n .RE
58395909
.SH "FILTERING EXPRESSIONS"
58405910
.sp
58415911
These filtering expressions are accepted by most of the commands.

doc/bcftools.html

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h2 id="_description">DESCRIPTION</h2>
5050
<div class="sect2">
5151
<h3 id="_version">VERSION</h3>
5252
<div class="paragraph">
53-
<p>This manual page was last updated <strong>2024-12-16 09:31 GMT</strong> and refers to bcftools git version <strong>1.21-58-g6559a12a+</strong>.</p>
53+
<p>This manual page was last updated <strong>2024-12-28 22:19 GMT</strong> and refers to bcftools git version <strong>1.21-61-g68f13f2e+</strong>.</p>
5454
</div>
5555
</div>
5656
<div class="sect2">
@@ -178,10 +178,13 @@ <h2 id="_list_of_scripts">LIST OF SCRIPTS</h2>
178178
<div class="ulist">
179179
<ul>
180180
<li>
181-
<p><strong><a href="#gff2gff">gff2gff</a></strong> .. converts a GFF file to the format required by <strong><a href="#csq">csq</a></strong></p>
181+
<p><strong><a href="#gff2gff">gff2gff</a></strong> .. converts a GFF file to the format required by <strong><a href="#csq">bcftools csq</a></strong></p>
182182
</li>
183183
<li>
184-
<p><strong><a href="#plot-vcfstats">plot-vcfstats</a></strong> .. plots the output of <strong><a href="#stats">stats</a></strong></p>
184+
<p><strong><a href="#plot-vcfstats">plot-vcfstats</a></strong> .. plots the output of <strong><a href="#stats">bcftools stats</a></strong></p>
185+
</li>
186+
<li>
187+
<p><strong><a href="#roh-viz">roh-viz</a></strong> .. creates HTML/JavaScript visualization of <strong><a href="#roh">bcftools roh</a></strong></p>
185188
</li>
186189
</ul>
187190
</div>
@@ -4380,7 +4383,8 @@ <h3 id="reheader">bcftools reheader [<em>OPTIONS</em>] <em>file.vcf.gz</em></h3>
43804383
<h3 id="roh">bcftools roh [<em>OPTIONS</em>] <em>file.vcf.gz</em></h3>
43814384
<div class="paragraph">
43824385
<p>A program for detecting runs of homo/autozygosity. Only bi-allelic sites
4383-
are considered.</p>
4386+
are considered. The results can be visualized in HTML/JavaScript using
4387+
the <strong><a href="#roh-viz">roh-viz</a></strong> script.</p>
43844388
</div>
43854389
<div class="sect3">
43864390
<h4 id="_the_hmm_model">The HMM model:</h4>
@@ -5114,6 +5118,65 @@ <h3 id="plot-vcfstats">plot-vcfstats [<em>OPTIONS</em>] <em>file.vchk</em> [&#82
51145118
</div>
51155119
</div>
51165120
</div>
5121+
<div class="sect2">
5122+
<h3 id="roh-viz">roh-viz [<em>OPTIONS</em>]</h3>
5123+
<div class="paragraph">
5124+
<p>Script for visualizing the output of <strong><a href="#roh">bcftools roh</a></strong>. It creates
5125+
a HTML/JavaScript document which can be interactively viewed in your favorite
5126+
web browser.</p>
5127+
</div>
5128+
<div class="dlist">
5129+
<dl>
5130+
<dt class="hdlist1"><strong>-i, --RoH-file</strong> <em>FILE</em></dt>
5131+
<dd>
5132+
<p>Output of bcftools/roh</p>
5133+
</dd>
5134+
<dt class="hdlist1"><strong>-l, --min-length</strong> <em>NUM</em></dt>
5135+
<dd>
5136+
<p>Mimimum length of ROH [1e6]</p>
5137+
</dd>
5138+
<dt class="hdlist1"><strong>-o, --output</strong> <em>FILE</em></dt>
5139+
<dd>
5140+
<p>HTML output file</p>
5141+
</dd>
5142+
<dt class="hdlist1"><strong>-r, --regions</strong> <em>LIST</em></dt>
5143+
<dd>
5144+
<p>List of chromosomes/regions</p>
5145+
</dd>
5146+
<dt class="hdlist1"><strong>-s, --samples</strong> <em>LIST</em></dt>
5147+
<dd>
5148+
<p>List of samples to show</p>
5149+
</dd>
5150+
<dt class="hdlist1"><strong>-v, --VCF-file</strong> <em>FILE</em></dt>
5151+
<dd>
5152+
<p>VCF file to determine homozygosity rate</p>
5153+
</dd>
5154+
</dl>
5155+
</div>
5156+
<div class="paragraph">
5157+
<p><strong>-h, -?, --help</strong>
5158+
This help message</p>
5159+
</div>
5160+
<div class="paragraph">
5161+
<p><strong>Example:</strong></p>
5162+
</div>
5163+
<div class="openblock">
5164+
<div class="content">
5165+
<div class="literalblock">
5166+
<div class="content">
5167+
<pre># Find RoH regions
5168+
bcftools roh --AF-dflt 0.5 -G 30 -Or -o roh.txt file.bcf</pre>
5169+
</div>
5170+
</div>
5171+
<div class="literalblock">
5172+
<div class="content">
5173+
<pre># Create HTML/JavaScript visualization
5174+
roh-viz -r roh.txt -v file.bcf -o output.html</pre>
5175+
</div>
5176+
</div>
5177+
</div>
5178+
</div>
5179+
</div>
51175180
</div>
51185181
</div>
51195182
<div class="sect1">
@@ -5654,7 +5717,7 @@ <h2 id="_copying">COPYING</h2>
56545717
</div>
56555718
<div id="footer">
56565719
<div id="footer-text">
5657-
Last updated 2024-12-16 09:31:50 UTC
5720+
Last updated 2024-12-28 22:19:33 UTC
56585721
</div>
56595722
</div>
56605723
</body>

doc/bcftools.txt

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ LIST OF SCRIPTS
109109
---------------
110110
Some helper scripts are bundled with the bcftools code.
111111

112-
- *<<gff2gff,gff2gff>>* .. converts a GFF file to the format required by *<<csq,csq>>*
113-
- *<<plot-vcfstats,plot-vcfstats>>* .. plots the output of *<<stats,stats>>*
112+
- *<<gff2gff,gff2gff>>* .. converts a GFF file to the format required by *<<csq,bcftools csq>>*
113+
- *<<plot-vcfstats,plot-vcfstats>>* .. plots the output of *<<stats,bcftools stats>>*
114+
- *<<roh-viz,roh-viz>>* .. creates HTML/JavaScript visualization of *<<roh,bcftools roh>>*
114115

115116

116117
COMMANDS AND OPTIONS
@@ -3286,7 +3287,8 @@ Modify header of VCF/BCF files, change sample names.
32863287
[[roh]]
32873288
=== bcftools roh ['OPTIONS'] 'file.vcf.gz'
32883289
A program for detecting runs of homo/autozygosity. Only bi-allelic sites
3289-
are considered.
3290+
are considered. The results can be visualized in HTML/JavaScript using
3291+
the *<<roh-viz,roh-viz>>* script.
32903292

32913293
==== The HMM model:
32923294
--------------------------------------
@@ -3829,6 +3831,44 @@ chromosome separately), plots graphs and creates a PDF presentation.
38293831
--
38303832

38313833

3834+
[[roh-viz]]
3835+
=== roh-viz ['OPTIONS']
3836+
Script for visualizing the output of *<<roh,bcftools roh>>*. It creates
3837+
a HTML/JavaScript document which can be interactively viewed in your favorite
3838+
web browser.
3839+
3840+
*-i, --RoH-file* 'FILE'::
3841+
Output of bcftools/roh
3842+
3843+
*-l, --min-length* 'NUM'::
3844+
Mimimum length of ROH [1e6]
3845+
3846+
*-o, --output* 'FILE'::
3847+
HTML output file
3848+
3849+
*-r, --regions* 'LIST'::
3850+
List of chromosomes/regions
3851+
3852+
*-s, --samples* 'LIST'::
3853+
List of samples to show
3854+
3855+
*-v, --VCF-file* 'FILE'::
3856+
VCF file to determine homozygosity rate
3857+
3858+
*-h, -?, --help*
3859+
This help message
3860+
3861+
3862+
*Example:*
3863+
--
3864+
# Find RoH regions
3865+
bcftools roh --AF-dflt 0.5 -G 30 -Or -o roh.txt file.bcf
3866+
3867+
# Create HTML/JavaScript visualization
3868+
roh-viz -r roh.txt -v file.bcf -o output.html
3869+
--
3870+
3871+
38323872
[[expressions]]
38333873
FILTERING EXPRESSIONS
38343874
---------------------

misc/roh-viz

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ sub error
5454
" -v, --VCF-file FILE VCF file to determine homozygosity rate\n",
5555
" -h, -?, --help This help message\n",
5656
"Example:\n",
57-
" bcftools roh --AF-dflt 0.5 -G 30 -Or -o roh.txt file.bcf",
57+
" bcftools roh --AF-dflt 0.5 -G 30 -Or -o roh.txt file.bcf\n",
5858
" roh-viz -r roh.txt -v file.bcf -o output.html\n",
5959
"\n";
6060
exit -1;

0 commit comments

Comments
 (0)