load_LD: Load Linkage Disequilibrium

Description Usage Arguments Value Examples

View source: R/load_LD.R

Description

Load Linkage Disequilibrium

Usage

1
2
3
4
5
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

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

PAST documentation built on Nov. 8, 2020, 8:31 p.m.