public final class InitTargHapPairs
extends java.lang.Object
Class InitTargHapPairs has a static method for returning
initial target haplotype pairs.
Instances of class InitTargHapPairs are immutable.
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.List<HapPair> |
run(GT gl,
HapPairs refHaps,
double minFreq,
int nCopies,
long seed) |
Returns initial target haplotype pairs.
|
public static java.util.List<HapPair> run(GT gl, HapPairs refHaps, double minFreq, int nCopies, long seed)
gl - the target genotype datarefHaps - the reference haplotype pairsminFreq - a minimum allele frequency to be enforcednCopies - the number of haplotype pairs sampled for each target
individualseed - the seed for random number generationjava.lang.IllegalArgumentException - if
minFreq <= 0.0 || minFreq >= 0.5 || Double.isNaN(minFreq) == truejava.lang.IllegalArgumentException - if nCopies < 1java.lang.NullPointerException - if gl == null || refHapPairs == null