Package imp
Class CodedSteps
java.lang.Object
imp.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.
-
Constructor Summary
ConstructorsConstructorDescriptionCodedSteps
(ImpData impData) Constructs a newCodedSteps
instance from the specified data. -
Method Summary
Modifier and TypeMethodDescriptionget
(int step) Returns a map from haplotype index to allele sequence index for the specified stepimpData()
Return the input data for genotype imputation used to constructthis
.int
nSteps()
Returns the number of steps.int
stepStart
(int step) Returns the first marker index in the specified step.
-
Constructor Details
-
CodedSteps
Constructs a newCodedSteps
instance from the specified data.- Parameters:
impData
- input data for genotype imputation- Throws:
NullPointerException
- ifimpData == null
-
-
Method Details
-
impData
Return the input data for genotype imputation used to constructthis
.- Returns:
- the input data for genotype imputation used to construct
this
-
nSteps
public int nSteps()Returns the number of steps.- Returns:
- the number of steps
-
stepStart
public int stepStart(int step) Returns the first marker index in the specified step.- Parameters:
step
- a step index- Returns:
- the first marker index in the specified step
- Throws:
IllegalArgumentException
- ifstep < 0 || step >= this.nSteps()
-
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.nSteps()
-