tdt.snp(ped, id, father, mother, affected, data = sys.parent(), snp.data, rules = NULL, snp.subset, check.inheritance = TRUE, robust = FALSE, uncertain = FALSE, score = FALSE)
"SnpMatrix"
containing the SNP
genotypes to be tested"ImputationRules"
. If
supplied, the rules coded in this object are used, together with
snp.data
, to calculate tests for imputed SNPssnp.data
or, in imputation mode, as specified by rules
ped
determining independent "clusters")robust
variance estimatesTRUE
, the output object will contain, for each
SNP, the score vector and its variance-covariance matrix"SingleSnpTests"
.
If score=TRUE
, the output object will be of the extended class
"SingleSnpTestsScore"
containing additional slots holding the score statistics and their
variances (and covariances). This allows meta-analysis using the
pool
function.
single.snp.tests
so that results from family-based and
population-based studies can be combined using pool
. When the function is used to calculate tests for imputed SNPs, the
test is still an approximate score test. The current version does not use
the family relationships in the imputation. With this option, the robust
variance estimate is forced.
The first five arguments are usually derived from a "pedfile". If a
data frame is supplied for the data
argument, the first five
arguments will be evaluated in this frame. Otherwise they will be evaluated
in the calling environment. If the arguments are missing, they will be
assumed to be in their usual positions in the pedfile data frame
i.e. in columns one to
four for the identifiers and column six for disease status
(with affected coded 2
). If the pedfile data are obtained from
a dataframe, the row names of the data
and snp.data
files will be used to align the pedfile and SNP data. Otherwise, these
vectors will be assumed to be in the same order as the rows of
snp.data
.
The snp.subset
argument can be a logical,
integer, or character vector.
If imputed rather than observed SNPs are tested, or
if check.inheritance
is set to
FALSE
, the "robust" variance estimate is used regardless of the
value supplied for the robust
argument.
single.snp.tests
, impute.snps
,
pool
, ImputationRules-class
,
SingleSnpTests-class
,
SingleSnpTestsScore-class
data(families)
tdt.snp(data=pedData, snp.data=genotypes)
Run the code above in your browser using DataLab