Release 1.4 (13 March 2017)
Two new commands - mpileup and csq:
-
The
mpileupcommand has been imported from samtools to bcftools. The
reasoning behind this is that bcftools calling is intimately tied to mpileup
and any changes to one, often requires changes to the other. Only the
genotype likelihood (BCF output) part of mpileup has moved to bcftools,
while the textual pileup output remains in samtools. The BCF output option
insamtools mpileupwill likely be removed in a release or two or when
changes tobcftools callare incompatible with the old mpileup output.The basic mpileup functionality remains unchanged as do most of the command
line options, but there are some differences and new features that one
should be aware of:-
The option
samtools mpileup -t, --output-tagschanged tobcftools mpileup -a, --annotateto avoid conflict with the-t, --targets
option common across other bcftools commands. -
-O, --output-BPand-s, --output-MQare no longer used as they are
only for textual pipelup output, which is not included inbcftools mpileup.-Oshort option reassigned to--output-typeand-s
reassigned to--samplesfor consistency with other bcftools commands. -
-g, --BCF,-v, --VCF, and-u, --uncompressedoptions from
samtools mpileupare no longer used, being replaced by the
-O, --output-typeoption common to other bcftools commands. -
The
-f, --fasta-refoption is now required by default to help avoid user
errors. Can be diabled using--no-reference. -
The option
-d, --depth .. max per-file depthnow behaves as expected
and according to the documentation, and prints a meaningful diagnostics. -
The
-S, --samples-filecan be used to rename samples on the fly. See man
page for details. -
The
-G, --read-groupsfunctionality has been extended to allow
reassignment, grouping and exclusion of readgroups. See man page for
details. -
The
-l, --positionsreplaced by the-t, --targetsand
-T, --targets-fileoptions to be consistent with other bcftools
commands. -
gVCF output is supported. Per-sample gVCFs created by mpileup can be
merged usingbcftools merge --gvcf. -
Can generate mpileup output on multiple (indexed) regions using the
-r, --regionsand-R, --regions-fileoptions. In samtools, one
was restricted to a single region with the-r, --regionoption. -
Several speedups thanks to @jkbonfield (cf3a55a).
-
-
csq: New command for haplotype-aware variant consequence calling.
See man page and paper.
Updates, improvements and bugfixes for many other commands:
-
annotate:--collapseoption added.--mark-sitesnow works with
VCF files rather than just tab-delimited files. Now possible to annotate
a subset of samples from tab file, not just VCF file (#469). Bugfixes (#428). -
call: New option-F, --prior-freqsto take advantage of prior knowledge
of population allele frequencies. Improved calculation of the QUAL score
particularly for REF sites (#449, 7c56870).PLs>=256allowed in
call -m. Bugfixes (#436). -
concat --naivenow works with vcf.gz in addition to bcf files. -
consensus: handle variants overlapping region boundaries (#400). -
convert: gvcf2vcf support for mpileup and GATK. new--sexoption to
assign sex to be used in certain output types (#500). Large speedup of
--hapsampleand--haplegendsample(e8e369b) especially with--threads
option enabled. Bugfixes (#460). -
cnv: improvements to output (be8b378). -
filter: bugfixes (#406). -
gtcheck: improved cross-check mode (#441). -
indexcan now specify the path to the output index file. Also, gains the
--threadsoption. -
merge: Large overhaul ofmergecommand including support for merging
gVCF files created bybcftools mpileup --gvcfwith the new-g, --gvcf
option. New options-Fto control filter logic and-0to set missing
data to REF. Resolved a number of longstanding issues (#296, #361, #401,
#408, #412). -
norm: Bugfixes (#385,#452,#439), more informative error messages (#364). -
query:%ENDplus%POS0,%END0(0-indexed) support - allows easy BED
format output (#479).%TBCSQfor use with the newcsqcommand. Bugfixes
(#488,#489). -
plugin: A number of new plugins:GTsubset(thanks to @dlaehnemann)ad-biasaf-distfill-from-fastafixrefguess-ploidy(deprecatesvcf2sexplugin)isecGTtrio-switch-rate
and changes to existing plugins:
-
reheader: allow muiltispace delimiters in--samplesoption. -
roh: Now possible to process multiple samples at once. This allows
considerable speedups for files with thousands of samples where the cost of
HMM is neglibible compared to I/O and decompressing. In order to fit tens of
thousands samples in memory, a sliding HMM can be used (new--buffer-size
option). Viterbi training now uses Baum-Welch algorithm, and works much
better. Support for gVCFs or FORMAT/PL tags. Added-o, outputand
-O, --output-typeoptions to control output of sites or regions
(compression optional). Many bugs fixed - do not segfault on missing PL
values anymore, a typo in genetic map calculation resulted in a slowdown and
incorrect results. -
stats: Bugfixes (16414e6), new options-af-binsand-af-tagsto control
allele frequency binning of output. Per-sample genotype concordance tables
added (#477). -
view -a, --trim-alt-allelesvarious bugfixes for missing data and more
informative errors should now be given on failure to pinpoint problems.
General changes:
-
Timestamps are now added to header lines summarising the command (#467).
-
Use of the
--threadsoptions should be faster across the board thanks to
changes in HTSlib meaning meaning threads are now shared by the compression
and decompression calls. -
Changes to genotype filtering with
-i, --includeand-e, --exclude(#454).
The [foo-1.x].tar.bz2 download is the full source code release. The “Source code” downloads are generated by GitHub and are incomplete as they [don't bundle HTSlib and] are missing some generated files.