Usage
singlescan(data.obj, geno.obj = NULL, n.perm = NULL,
covar = NULL, alpha = c(0.01, 0.05),
scan.what = c("eigentraits", "raw.traits"),
use.kinship = FALSE, kin.full.geno = FALSE,
run.parallel = TRUE, sample.kinship = FALSE,
num.kin.samples = 1000, n.per.sample = 10,
verbose = FALSE, overwrite.alert = TRUE, n.cores = 2)
Arguments
geno.obj
The object in which the genotype matrix and marker information are stored. See read.geno
.
n.perm
The number of permutations to be performed.
alpha
A vector of alpha values for which significant standardized effect values will be calculated.
scan.what
A character string indicating uniquely whether raw traits or eigentraits should be tested.
use.kinship
A logical value indicating whether a kinship correction should be implemented.
kin.full.geno
A logical value indicating whether the entire genotype matrix should be used to calculate kinship corrections. If FALSE, only the subset of genetic markers being scanned will be used to calculate kinship corrections.
run.parallel
A logial value indicating whether to run calculations in parallel.
sample.kinship
A logical value indicating whether kinship matrices should be sampled (TRUE) or calculated directly (FALSE). Sampling kinshp matrices can be faster in the case of very large genotype matrices.
num.kin.samples
If sample.kinship is TRUE, this integer indicates how many samples should be used to calculate kinship matrices.
n.per.sample
If sample.kinship is TRUE, this integer indicates how many markers should be used in each sample of the genotype matrix for calculating kinship matrices.
verbose
A logical value indicating whether the progress of the scan should be printed to the screen.
overwrite.alert
If TRUE, this triggers an alert warning the user that the output of this function should be saved separately from the data.obj.
n.cores
An integer specifying the number of cores to be used in parallel processing.