The probabilities to convert to hard calls. The algorithm does not check that they sum to 1. If the probabilities are unphased, they are assumed to correspond to the genotypes in colex order, which is standard for both BGEN and VCF files.
The number of alternate alleles at this site.
Whether the probabilities are phased (per haplotype) or unphased (whole genotype).
Calls are only generated if at least one probability is above this threshold.
The number of alternate alleles at this site.
Whether the probabilities are phased (per haplotype) or unphased (whole genotype).
The probabilities to convert to hard calls.
The probabilities to convert to hard calls. The algorithm does not check that they sum to 1. If the probabilities are unphased, they are assumed to correspond to the genotypes in colex order, which is standard for both BGEN and VCF files.
Calls are only generated if at least one probability is above this threshold.
Converts an array of probabilities (most likely the genotype probabilities from a BGEN file) into hard calls. The input probabilities are assumed to be diploid.
If the input probabilities are phased, each haplotype is called separately by finding the maximum probability greater than the threshold (0.9 by default, a la plink). If no probability is greater than the threshold, the call is -1 (missing).
If the input probabilities are unphased, the probabilities refer to the complete genotype. In this case, we find the maximum probability greater than the threshold and then convert that value to a genotype call.
If any of the required parameters (probabilities, numAlts, phased) are null, the expression returns null.
The probabilities to convert to hard calls. The algorithm does not check that they sum to 1. If the probabilities are unphased, they are assumed to correspond to the genotypes in colex order, which is standard for both BGEN and VCF files.
The number of alternate alleles at this site.
Whether the probabilities are phased (per haplotype) or unphased (whole genotype).
Calls are only generated if at least one probability is above this threshold.