View source: R/genome_wide_threshold_1D.R
genome_wide_threshold_1D | R Documentation |
This function uses permutation testing to calculate a genome-wide significance threshold for the single-variant scan. Two user-defined thresholds are calculated: the lower threshold (higher alpha) can be used to determine which variants will be used in the pairwise scan. The higher threshold (lower alpha) is used to determine which variants are used as covariates in the pairwise scan. In each permutation, the phenotype or eigentrait is shuffled and all markers are retested with the permuted phenotype. The regression coefficients are collected from each permutation and the extreme value distribution is used to determine thresholds for the user-defined alpha values.
genome_wide_threshold_1D(
data_obj,
geno_obj,
n_perm = 100,
scan_what = c("eigentraits", "raw_traits"),
ref_allele = NULL,
alpha = c(0.01, 0.05),
model_family,
run_parallel = FALSE,
n_cores = 4,
verbose = FALSE
)
data_obj |
a |
geno_obj |
a genotype object. |
n_perm |
The number of permutations to perform. The default is 100. |
scan_what |
A character value that uniquely specifies whether the eigentraits or phenotypes should be scanned. Options are "eigentraits" or "raw_traits". |
ref_allele |
|
alpha |
The alpha value(s) used to calculate significance levels. This should be a vector of any length of numerical values between 0 and 1. The default is a vector of length two: c(0.01, 0.05). |
model_family |
Indicates the model family of the phenotypes. This can be either "gaussian" or "binomial". |
run_parallel |
A logical value indicating whether the process should be run in parallel. Defaults to FALSE. |
n_cores |
integer number of cores to use if running in parallel |
verbose |
A logical value indicating whether to print progress to the screen. Defaults to FALSE. |
Returns a vector the same length as alpha indicating the thresholds for each value of alpha.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.