Description Usage Arguments Value References Examples
The function calculates the LD adjustment of each SNP for one given size of genotype data block.
1 | regionalLD(geno_data, position = "start", size = 300)
|
geno_data |
the standardized genotype matrix assuming each row is the individual and each column is the SNP. |
position |
a character indicating the position of the SNP in a block of SNPs, one of
|
size |
an integer for the number of SNPs that should be included in a block. Usually, for genome-wide datasets, there are about 2 million SNPs and +/- 300 SNPs is roughly equivalent to 1Mb physical distance, thus 300 is set as the default size. |
a numeric vector of LD adjustments with the same length as the number of SNPs in the genotype matrix.
Pare, Guillaume, Shihong Mao, and Wei Q. Deng. A method to estimate the contribution of regional genetic associations to complex traits from summary association statistics. Scientific reports 6 (2016): 27644.
1 2 3 4 | data(geno)
norm_geno <- full_normal_geno(geno_raw = geno)
regLD <- regionalLD(geno_data = norm_geno, position = 'mid', size = 300)
print(regLD)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.