Package imp
Class CodedSteps
- java.lang.Object
-
- imp.CodedSteps
-
public class CodedSteps extends java.lang.ObjectClass
CodedStepsdivides 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
Constructors Constructor Description CodedSteps(ImpData impData)Constructs a newCodedStepsinstance from the specified data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexArrayget(int step)Returns a map from haplotype index to allele sequence index for the specified stepImpDataimpData()Return the input data for genotype imputation used to constructthis.intnSteps()Returns the number of steps.intstepStart(int step)Returns the first marker index in the specified step.
-
-
-
Constructor Detail
-
CodedSteps
public CodedSteps(ImpData impData)
Constructs a newCodedStepsinstance from the specified data.- Parameters:
impData- input data for genotype imputation- Throws:
java.lang.NullPointerException- ifimpData == null
-
-
Method Detail
-
impData
public ImpData 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:
java.lang.IllegalArgumentException- ifstep < 0 || step >= this.nSteps()
-
get
public IndexArray get(int step)
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:
java.lang.IllegalArgumentException- ifstep < 0 || step >= this.nSteps()
-
-