Package phase
Class CodedSteps
java.lang.Object
phase.CodedSteps
Class CodedSteps divides phased genotype data
into non-overlapping intervals (the steps), indexes the unique
allele sequences in each interval, and stores a map of haplotype
index to allele sequence index for each interval.
Instances of class CodedSteps are immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionCodedSteps(EstPhase estPhase) Constructs a newCodedStepsinstance from the specified data. -
Method Summary
Modifier and TypeMethodDescriptionallHaps()Return the phased target and reference genotype data that was used to construct thisCodedStepsinstance.get(int step) Returns a map from haplotype index to allele sequence index for the specified steprefHaps()Returns the reference haplotypessteps()Returns the partition of the markers into non-overlapping intervals.Returns the target samples.
-
Constructor Details
-
CodedSteps
Constructs a newCodedStepsinstance from the specified data.- Parameters:
estPhase- the input data genotype phasing and the current phase estimate for each target sample- Throws:
NullPointerException- ifestPhase == null
-
-
Method Details
-
get
Returns a map from haplotype index to allele sequence index for the specified step- Parameters:
step- a step index- Returns:
- a map from haplotype index to allele sequence index for the specified step
- Throws:
IllegalArgumentException- ifstep < 0 || step >= this.steps().size()
-
targSamples
Returns the target samples.- Returns:
- the target samples
-
refHaps
Returns the reference haplotypes- Returns:
- the reference haplotypes
-
allHaps
Return the phased target and reference genotype data that was used to construct thisCodedStepsinstance. The target haplotypes precede the reference haplotypes.- Returns:
- the phased target and reference genotype data
-
steps
Returns the partition of the markers into non-overlapping intervals.- Returns:
- the partition of the markers into non-overlapping intervals
-