Description Usage Arguments Value Author(s) See Also Examples
View source: R/simulate_pheno.R
This function creates a reference set for causal variants in the simulation based on a LD window.
1 | create_refset(window = 101, chr.pos)
|
window |
an integer for the spacing of SNPs in the reference set (should be based on LD information). |
chr.pos |
a p by 2 matrix where p is the number of SNPs (rows) that contains the genetic map for the genotype matrix. The first column must contain chromosome number (numeric) and the second column must contain the SNP positions for each chromosome. |
A vector of reference SNP spaced by window size.
Olivier François
1 2 3 4 5 | library(naturalgwas)
## Load A. thaliana example
data(A.thaliana)
ref.set <- create_refset(A.thaliana$chrpos, window = 101)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.