Package imp

Class CodedSteps


  • public class CodedSteps
    extends java.lang.Object

    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

      Constructors 
      Constructor Description
      CodedSteps​(ImpData impData)
      Constructs a new CodedSteps instance from the specified data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IndexArray get​(int step)
      Returns a map from haplotype index to allele sequence index for the specified step
      ImpData impData()
      Return the input data for genotype imputation used to construct this.
      int nSteps()
      Returns the number of steps.
      int stepStart​(int step)
      Returns the first marker index in the specified step.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CodedSteps

        public CodedSteps​(ImpData impData)
        Constructs a new CodedSteps instance from the specified data.
        Parameters:
        impData - input data for genotype imputation
        Throws:
        java.lang.NullPointerException - if impData == null
    • Method Detail

      • impData

        public ImpData impData()
        Return the input data for genotype imputation used to construct this.
        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 - if step < 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 - if step < 0 || step >= this.nSteps()