SimGenoPower | R Documentation |
Infers statistical power for discovery of variants in a 2-way admixed group, and the corresponding populations of ancestry origin.
SimGenoPower(
n_snps = 1000,
popsizes = c(1000, 1000, 1000),
mean_ganc = 0.75,
sd_ganc = 0.1,
prop_causal = 0.1,
hg2 = 0.5,
fst = 0.2,
fst_constant = T,
bg_fst = F,
freqdist = "unif",
liability = NA,
aaf = c(0.001, 0.999),
envanc = 1,
envvar = 0,
alpha = 0.05
)
n_snps |
Total number of SNPs (causal and non-causal). SNPs are assumed independent from each other. Default is 1000. |
popsizes |
A vector of sample sizes for the admixed group, Pop 1 (ancestral origin from which the major component of ancestry comes), Pop 2 (ancestral origin from which the minor component of ancestry comes). Default is 1000 each. |
mean_ganc |
Mean global ancestry from Pop 1 in the admixed group. Default is 0.75. |
sd_ganc |
Standard deviation of the global ancestry distribution from Pop 1 in the admixed group. Default is 0.1. |
prop_causal |
Proportion of causal variant among total SNPs. Default is 0.1. |
hg2 |
Heritability of the trait. Default is 0.5. |
fst |
The baseline fixation index FST among causal variants between Pop 1 and Pop2. Default is 0.2. |
fst_constant |
True or False: Is FST among causal variants a constant value equaling the baseline (True) or have an increment with the rarity of ancestral minor allele frequency (False)? Default is True. |
bg_fst |
Genomic background Fst value between 0 and 1 for non-causal variants. Default 'FALSE' to be set as the same as |
freqdist |
Frequency distribution of ancestral variants (prior to the divergence of Pop 1 and 2). "unif" for a uniform distribution modeling (default), "inverse" for an inverse distribution modeling. |
liability |
A vector of liability threshold for dichotomous traits in the admixed group, Pop 1, Pop2, respectively. If set as NA (default), the trait is assumed to be quantitative. |
aaf |
Limits (min, max) on the frequency distribution of ancestral variants. Default is c(0.001, 0.999). |
envanc |
Options to model environment by ancestry interactions: 0 means no interaction. 1 means interation is modeled as the sum of Gaussian sampling. 2 means the interaction is modeled as linear dependence on the ancestry proportion. Default is 1. |
envvar |
percentage of the environment by ancestry interaction over the total phenotypic variance. Only effective when |
alpha |
Type I error rate. Default is 0.05. |
A list of powers and the re-estimated heritability from simulation.
admixed_power | Power for discovery in the admixed group |
pop1_power | Power for discovery in Pop 1 |
pop2_power | Power for discovery in Pop 2 |
h2 | Estimated heritability from simulated phenotypes and genotypes |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.