mergemats function

Merges two LD matrices

Merges two LD matrices

Merges two LD matrices. It can be used to compare the LD coefficients estimated in the real and simulated data sets

mergemats(mat1, mat2)

Arguments

  • mat1: First square matrix
  • mat2: Second square matrix of same dimensions

Returns

The resulting matrix has upper triangular matrix from mat1 and lower triangular matrix from mat2

References

Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.

Author(s)

Giovanni Montana

  • Maintainer: Apostolos Dimitromanolakis
  • License: GPL (>= 2)
  • Last published: 2017-06-07

Useful links