Package Correlation

Class EM


  • public class EM
    extends Correlation
    Calculates LD using the expectation maximization method
    • Constructor Summary

      Constructors 
      Constructor Description
      EM()  
    • Constructor Detail

      • EM

        public EM()
    • Method Detail

      • calculate

        public double calculate​(byte[] d1,
                                byte[] d2)
        Description copied from class: Correlation
        Calculates LD between two SNPs
        Specified by:
        calculate in class Correlation
        Parameters:
        d1 - SNP 1 genotype
        d2 - SNP 2 genotype
        Returns:
        LD between the two SNPs