Converts a list of LD matrices to haplotype data.
Usage
R_LD_to_haplodat(R_LD, af)
Arguments
- R_LD
A list of LD matrices, each matrix corresponding to a set of loci.
- af
A vector of allele frequencies corresponding to the loci in `R_LD`.
Value
A list of haplotype data, where each element corresponds to a set of loci.
Details
The function formats LD matrices into hapsim formatted input data.