<code>VcfFileReader</code> is declared in <code>VcfFileReader.h</code>, so be sure to include that file.
Subsetting Samples ====
To select only a subset of samples to keep, when opening the file also specify the name of the file containing the names of the samples to keep and the delimiter separating the sample names (default is a new line, '\n').
and discards reads that do not have <code>PASS</code> in the <code>FILTER</code> field and reads that have a genotype that is not phased or have no <code>GT</code> in the <code>FORMAT</code> fields.
Additional Rules ===== There are additional discard rules that can be specified by calling methods on VcfFileReader.
To Discard any records without a minimum number of alternate alleles, use:
The <code>VcfSubsetSamples* subset</code> parameter is a pointer to the subset of samples that you want to include when counting the number of alternate alleles. If all samples that are read/kept are to be included, NULL should be passed in.
The <code> minAltAlleleCount</code> parameter is the minimum number of alternate alleles found in the subset in order for the record to be kept.
Use the following method to remove the DiscardMinAltAlleleCount rule:
==== Read only Certain Sections of the File / Using a VCF Index (TABIX) File ====
** <code>allPhased()</code> returns true if all the samples are phased and none unphased and false if any are not phased
** <code>allUnphased()</code> returns true if all the samples are unphased and none phased and false if any are not unphased
** <code>hasAllGenotypeAlleles()</code> returns true if all the samples have all the genotype alleles specified and false if any are missing or the GT field is missing.
=== VcfRecordFilter ===
<code>VcfRecords</code> contain the data from the <code>INFO</code> field in a <code>VcfRecordFilter</code> object.