Tests if the given sample genotype in a record is diploid or not. @param rec record to check @param sample sample number @return true iff diploid @throws NoTalkbackSlimException if the sample is missing GT filed or invalid sample number
(VcfRecord rec, int sample)
| 704 | * @throws NoTalkbackSlimException if the sample is missing GT filed or invalid sample number |
| 705 | */ |
| 706 | public static boolean isDiploid(VcfRecord rec, int sample) { |
| 707 | final int[] gtArray = getValidGt(rec, sample); |
| 708 | return gtArray.length == 2; |
| 709 | } |
| 710 | |
| 711 | /** |
| 712 | * @param gt the genotype allele ids |
nothing calls this directly
no test coverage detected