load_LD {PAST} | R Documentation

## Load Linkage Disequilibrium

### Description

Load Linkage Disequilibrium

### Usage

    load_LD(LD_file, LD_columns = c("Locus1", "Position1", "Site1",
      "Position2", "Site2", "Dist_bp", "R.2"))

### Arguments

`LD_file` | The file containing linkage disequilibrium data
`LD_columns` | The names of the columns in your linkage disequilibrium data for the chromosome of the first SNP, the position of the first SNP, the site of the first SNP, the chromosome of the second SNP, the position of the second SNP, the site of the second SNP, the distance between the two SNPs, and the R.2

### Value

The linkage disequilibrium data in a list containing dataframes for each chromosome.

### Examples

    demo_LD_file = system.file("extdata","LD.txt.xz",
      package = "PAST", mustWork = TRUE)
    LD <- load_LD(demo_LD_file)

[Package PAST version 1.0.1 Index]