Package sample
Class InitTargHapPairs
- java.lang.Object
-
- sample.InitTargHapPairs
-
public final class InitTargHapPairs extends java.lang.ObjectClass
InitTargHapPairshas a static method for returning initial target haplotype pairs.Instances of class
InitTargHapPairsare immutable.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<LongArray>run(GT targ, GT ref, double minFreq, long seed)Returns initial target haplotype pairs.
-
-
-
Method Detail
-
run
public static java.util.List<LongArray> run(GT targ, GT ref, double minFreq, long seed)
Returns initial target haplotype pairs. Missing alleles are sampled according from the empirical allele frequency distribution, and input genotypes with unknown phase will have their alleles randomly ordered in the returned haplotype pairs.- Parameters:
targ- the target genotype dataref- the reference haplotype pairsminFreq- a minimum allele frequency to be enforcedseed- the seed for random number generation- Returns:
- initial target haplotype pairs
- Throws:
java.lang.IllegalArgumentException- ifminFreq <= 0.0 || minFreq >= 0.5 || Double.isNaN(minFreq) == truejava.lang.NullPointerException- ifgl == null || refHapPairs == null
-
-