New "reheader" command
Remove dependency on internal htslib file

Reapply 9f0acb8bffe4a872f0d76768df284cd3b3bba5ad's removal of unneeded
$(HTSDIR)/version.h dependency, which was mistakenly omitted by
3368b1f960c136fca4d456342bb615af18c194ea.  Depending on this file is
unnecessary and actively wrong because it won't exist when building
against an installed htslib; cf. Homebrew/homebrew-science#1015.
filter: Fix in string comparison, respect return status of strcmp
filter: Unpack FILTER in case the expression querie FORMAT only.

This had a side effect of resetting FILTER of records to PASS
even without -mx.
More tests for vcffilter
Reflect changes in bcf_hdr_get_hrec(), updated teset files
Fix header dependencies for bcftools source files

Move inclusion of version.h to main.c so that only main.o is rebuilt
when version.h changes (it's also included from version.c, used by
the plugins).  Remove vcfsom.c's bgzf.h inclusion, which isn't needed.
reheader: Complain if no option given
filter: Support for querying subfields of string INFO tags;

Support for querying all fields at once, e.g. DP4[*]<0.
Both features will likely break when combined with FORMAT
expressions, experimental.
Support for regular expressions in queries
filter: Bug fix in %AVG() calculation, resolves #74
reheader: Fix in .vcf.gz header parsing
reheader: Samples can now be given as "old new" pairs,

thus only the samples which need to be renamed can
be given.
view: add sample exclusion

- add sample exclusion with `^` prefix
- exit if samples not in header mentioned. error becomes warning if `--force-samples` option set
- add test for excluding samples
- include in documentation
Merge pull request #76 from mcshane/feature/view_exclude_samples

view: add sample exclusion
manpage: Minor fix, correct is "--genotype", not "--genotypes"
vcfindex: add shortcut options for TBI and CSI index creation

- to match the similar options in `samtools index`
- also added a few checks on the input options and file types
Merge pull request #78 from mcshane/feature/vcfindex_options

vcfindex: add shortcut options for TBI and CSI index creation
Comments
More comments