View source: R/read_plink_ld_file.R
read_plink_ld_file | R Documentation |
.ld
fileRead a PLINK .ld
file
read_plink_ld_file(ld_filename)
ld_filename |
name of a |
a tibble with column names:
CHR_A
Chromosome code for first variant
BP_A
Base-pair coordinate of first variant
SNP_A
ID of first variant
(MAF_A
: Allele 1 frequency for first variant. Requires with-freqs
)
CHR_B
Chromosome code for second variant
BP_B
Base-pair coordinate of second variant
SNP_B
ID of second variant
(PHASE
: In-phase allele pairs. Requires in-phase
)
(MAF_B
Allele 1 frequency for second variant. Requires with-freqs
)
R
or R2
: for R
: the correlation coefficient,
for R2
, the squared correlation coefficient
These column names are the names used by PLINK
, the description is
taken from the PLINK 1.9 File format reference at
https://www.cog-genomics.org/plink/1.9/formats#ld
Richèl J.C. Bilderbeek
if (1 == 2) {
ld_filename <- get_plinkr_filename("miss_stat.ld")
read_plink_ld_file(ld_filename)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.