Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin authored and pd3 committed May 29, 2024
1 parent 310a609 commit 30c6443
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion howtos/FAQ.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h2 id="_frequently_asked_questions">Frequently Asked Questions</h2>
</div>
</div>
<div class="paragraph">
<p>The error above is printed when different number of values is encoutered, for example <code>AC=1</code> or <code>AC=1,1,1</code> in the example above.</p>
<p>The error above is printed when different number of values is encountered, for example <code>AC=1</code> or <code>AC=1,1,1</code> in the example above.</p>
</div>
<div class="paragraph">
<p>Other such definitions are <code>Number=R</code> (there must be as many values as there are REF+ALT alleles in total),
Expand Down
2 changes: 1 addition & 1 deletion howtos/FAQ.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ and expects a value for each ALT allele, for example
----
chr1 64334 . A C,T . . AC=1,1 GT 0/1 0/1
----
The error above is printed when different number of values is encoutered, for example `AC=1` or `AC=1,1,1` in the example above.
The error above is printed when different number of values is encountered, for example `AC=1` or `AC=1,1,1` in the example above.

Other such definitions are `Number=R` (there must be as many values as there are REF+ALT alleles in total),
and `Number=G` (this is more complicated, see the section 1.4.2 of the link:http://samtools.github.io/hts-specs/VCFv4.3.pdf[VCF specification]).
Expand Down
6 changes: 3 additions & 3 deletions howtos/bcftools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ Add or remove annotations.

# Annotate from a tab-delimited file with regions (1-based coordinates, inclusive)
tabix -s1 -b2 -e3 annots.tab.gz
bcftools annotate -a annots.tab.gz -h annots.hdr -c CHROM,FROM,TO,TAG inut.vcf
bcftools annotate -a annots.tab.gz -h annots.hdr -c CHROM,FROM,TO,TAG input.vcf

# Annotate from a bed file (0-based coordinates, half-closed, half-open intervals)
bcftools annotate -a annots.bed.gz -h annots.hdr -c CHROM,FROM,TO,TAG input.vcf
Expand Down Expand Up @@ -1022,7 +1022,7 @@ See the usage examples below.
# %TBCSQ .. print consequences in both haplotypes in separate columns
# %TBCSQ{0} .. print the first haplotype only
# %TBCSQ{1} .. print the second haplotype only
# %TBCSQ{*} .. print a list of unique consquences present in either haplotype
# %TBCSQ{*} .. print a list of unique consequences present in either haplotype
bcftools query -f'[%CHROM\t%POS\t%SAMPLE\t%TBCSQ\n]' out.bcf
----

Expand Down Expand Up @@ -2069,7 +2069,7 @@ Extracts fields from VCF or BCF files and outputs them in user-defined format.
%SAMPLE Sample name
%POS0 POS in 0-based coordinates
%END End position of the REF allele
%END0 End position of the REF allele in 0-based cordinates
%END0 End position of the REF allele in 0-based coordinates
\n new line
\t tab character

Expand Down
2 changes: 1 addition & 1 deletion howtos/cnv-calling.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ <h3 id="_detecting_subchromosomal_cnvs">Detecting subchromosomal CNVs</h3>
</div>
<div class="listingblock">
<div class="content">
<pre>bcftools cnv -c conrol_sample -s query_sample -o outdir/ -p 0 file.vcf</pre>
<pre>bcftools cnv -c control_sample -s query_sample -o outdir/ -p 0 file.vcf</pre>
</div>
</div>
<div class="paragraph">
Expand Down
2 changes: 1 addition & 1 deletion howtos/cnv-calling.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ differences between two samples. This greatly helps to reduce the number of
false calls and also allows one to distinguish between normal and novel copy number
variation. The command is
----
bcftools cnv -c conrol_sample -s query_sample -o outdir/ -p 0 file.vcf
bcftools cnv -c control_sample -s query_sample -o outdir/ -p 0 file.vcf
----
The ``-p 0`` option tells the program to automatically call matplotlib and
produce plots like the one in this example:
Expand Down
2 changes: 1 addition & 1 deletion howtos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h3 id="_about_bcftools">About BCFtools</h3>
<p>BCFtools is a program for variant calling and manipulating files 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.
In order to avoid tedious repetion, throughout this document we will use
In order to avoid tedious repetition, throughout this document we will use
"VCF" and "BCF" interchangeably, unless specifically noted.</p>
</div>
<div class="paragraph">
Expand Down
2 changes: 1 addition & 1 deletion howtos/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ https://github.com/samtools/bcftools/issues[github].
BCFtools is a program for variant calling and manipulating files 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.
In order to avoid tedious repetion, throughout this document we will use
In order to avoid tedious repetition, throughout this document we will use
"VCF" and "BCF" interchangeably, unless specifically noted.

Most commands accept VCF, bgzipped VCF and BCF with filetype detected
Expand Down
2 changes: 1 addition & 1 deletion howtos/plugin.fixref.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ <h2 id="_plugin_fixref">Plugin fixref</h2>
</div>
<div class="paragraph">
<p>In the most extreme case when nothing else is working, one can simply force
the unambigous alleles onto the forward strand and drop the ambigous genotypes.</p>
the unambiguous alleles onto the forward strand and drop the ambiguous genotypes.</p>
</div>
<div class="listingblock">
<div class="content">
Expand Down
2 changes: 1 addition & 1 deletion howtos/plugin.fixref.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ bcftools sort fixref.bcf -Ob -o fixref.sorted.bcf


In the most extreme case when nothing else is working, one can simply force
the unambigous alleles onto the forward strand and drop the ambigous genotypes.
the unambiguous alleles onto the forward strand and drop the ambiguous genotypes.
----
bcftools +fixref test.bcf -Ob -o output.bcf -- -f ref.fa -m flip -d
----
Expand Down
2 changes: 1 addition & 1 deletion howtos/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h2 id="_extracting_information_from_vcfs">Extracting information from VCFs</h2>
</div>
</div>
<div class="paragraph">
<p>In this example, the <code>-f</code> otion defines the output format. The <code>%POS</code> string
<p>In this example, the <code>-f</code> option defines the output format. The <code>%POS</code> string
indicates that for each VCF line we want the POS column printed. The <code>\n</code>
stands for a newline character, a notation commonly used in the
world of computer programming. Any characters without a special meaning
Expand Down
2 changes: 1 addition & 1 deletion howtos/query.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ bcftools query -l file.bcf | wc -l
----
bcftools query -f '%POS\n' file.bcf
----
In this example, the `-f` otion defines the output format. The `%POS` string
In this example, the `-f` option defines the output format. The `%POS` string
indicates that for each VCF line we want the POS column printed. The `\n`
stands for a newline character, a notation commonly used in the
world of computer programming. Any characters without a special meaning
Expand Down
4 changes: 2 additions & 2 deletions howtos/roh-calling.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ <h3 id="_troubleshooting">Troubleshooting</h3>
</div>
</div>
<div class="paragraph">
<p>If the number of the processed sites is too low, check what was the reason for exluding
<p>If the number of the processed sites is too low, check what was the reason for excluding
them. This command should give the number of sites that were processed:</p>
</div>
<div class="listingblock">
Expand Down Expand Up @@ -262,4 +262,4 @@ <h3 id="_feedback">Feedback</h3>
</div>
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion howtos/roh-calling.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ program. For example in this run many sites were filtered:
Number of lines: total/processed: 599218/37730
----

If the number of the processed sites is too low, check what was the reason for exluding
If the number of the processed sites is too low, check what was the reason for excluding
them. This command should give the number of sites that were processed:

----
Expand Down

0 comments on commit 30c6443

Please sign in to comment.