Usage
check.marker(data, snpsubset, idsubset, callrate = 0.95, perid.call=0.95, extr.call = 0.1, extr.perid.call = 0.1, het.fdr = 0.01, ibs.threshold = 0.95, ibs.mrk = 2000, ibs.exclude="both", maf, p.level = -1, fdrate = 0.2, odds = 1000, hweidsubset, redundant = "no", minconcordance = 2.0, qoption = "bh95", imphetasmissing = TRUE, XXY.call=0.8, intermediateXF = c(0.5, 0.5))
Arguments
data
gwaa.data or snp.data object
snpsubset
a subset of SNPs to check (names, indexes, logical), default is all from data
idsubset
a subset of people to check (names, indexes, logical), default is all from data
callrate
cut-off SNP call rate
perid.call
cut-off individual call rate (maximum percent of missing genotypes in a person)
extr.call
SNPs with this low call rate are dropped prior to main analysis
extr.perid.call
people with this low call rate are dropped prior to main analysis
het.fdr
FDR rate for unacceptably high individual heterozygosity
ibs.threshold
threshold value for acceptable IBS
ibs.mrk
How many random markers should be used to estimate IBS. When ibs.mrk < 1, IBS checks are turned off.
When "all" all markers are used.
ibs.exclude
"both", "lower" or "none" -- whether both samples with IBS>ibs.threshold
should be excluded, the one with lower call rate, or no check (equivalent to use of
'ibs.mrk = -1').
maf
cut-off Minor Allele Frequency. If not specified, the default value is 5 chromosomes 5/(2*nids(data))
p.level
cut-off p-value in check for Hardy-Weinberg Equilibrium. If negative, FDR is applied
fdrate
cut-off FDR level in check for Hardy-Weinberg Equilibrium
odds
cut-off odds to decide whether marker/person should be excluded based on sex/X-linked marker data inconsistency
hweidsubset
a subset of people to check (names, indexes, logical) to use for HWE check
redundant
if "bychrom", redundancy is checked within chromosomes; "all" -- all pairs of markers; "no" -- no redundancy checks
minconcordance
a parameter passed to "redundant" function. If "minconcordance" is > 1.0
only pairs of markers which are exactly the same, including NA pattern,
are considered as redundant; if 0 < "minconcordance" < 1, then pairs
of markers with concordance > "minconcordance" are considered redundant.
see redundant
for details. Note that if "minconcordance" < 1
the program will take much longer time to run qoption
if "bh95", BH95 FDR used; if "storey", qvalue package (if installed) is used
imphetasmissing
If "impossible heterozygotes" (e.g. heterozygous
mtDNA, and male Y- and X-chromsome markers) should
be treated as missing genotypes in the QC procedure
XXY.call
What proportion of Y-chromosome markers should be called to consider that
Y-chromosome is present (in presence of XX)
intermediateXF
X-chromosomal F to be considered 'intermediate' and regarded as error;
currently use of default disables this check