Tests if the given sample genotype in a record is heterozygous or not. @param rec record to check @param sample sample number @return true iff heterozygous @throws NoTalkbackSlimException if the sample is missing GT filed or invalid sample number
(VcfRecord rec, int sample)
| 680 | * @throws NoTalkbackSlimException if the sample is missing GT filed or invalid sample number |
| 681 | */ |
| 682 | public static boolean isHeterozygous(VcfRecord rec, int sample) { |
| 683 | final int[] gtArray = getValidGt(rec, sample); |
| 684 | return isHeterozygous(gtArray); |
| 685 | } |
| 686 | |
| 687 | /** |
| 688 | * Tests if the given sample genotype in a record is haploid or not. |