From Genome Analysis Wiki
Jump to navigationJump to search
536 bytes added
, 10:48, 24 July 2012
Line 274: |
Line 274: |
| ** <code>allPhased()</code> returns true if all the samples are phased and none unphased and false if any are not phased | | ** <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>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. | + | ** <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 |
| + | ** <code>getNumSamples()</code> returns the number of samples (that are kept) |
| + | ** <code>getNumGTs(int index)</code> returns the number of GTs for the specified sample index (starts at 0) |
| + | ** <code>getGT(int sampleNum, unsigned int gtIndex)</code> returns the integer GT value for the specified sampleNum and GT index (both start at 0). A GT of VcfGenotypeSample::INVALID_GT is returned if the sampleNum or GT index is out of range. A GT of VcfGenotypeSample::MISSING_GT if the GT is '.' (This method is also found in VcfRecordGenotype. |
| | | |
| === VcfRecordFilter === | | === VcfRecordFilter === |
| <code>VcfRecords</code> contain the data from the <code>INFO</code> field in a <code>VcfRecordFilter</code> object. | | <code>VcfRecords</code> contain the data from the <code>INFO</code> field in a <code>VcfRecordFilter</code> object. |