Description Usage Arguments Value
View source: R/plot_gemma_lmm.R
rep_peaks
use the individual starins genomtypes matrix to find LD blocks in a greedy way
it starts by sorting the GWAS p-values and then choosing the lowest p-value and removing all
markers with a high correlation. It then selects the next marker and so on until all markers with
p-values smaller than the threshold are in peak regions.
1 2 3 4 5 6 7 8 | rep_peaks(
genotypes,
gwas_pvs,
rs_thr = 0.4,
pthr = 1e-20,
mxd = 1e+07,
test = "p_wald"
)
|
genotypes |
The genotypes matrix, one column for each strain, used for computing correlations |
gwas_pvs |
GWAS output pvalues |
rs_thr |
Threshold for correlation, r^2 larger than this value will be considered same peak |
pthr |
P-value threshold |
mxd |
Maximal peak width |
test |
Test name in the results data frmae |
a table with the marker name, choose = peak region number, ispeak = marker is peak, rsq = r square value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.