linkdat(x, model=NULL, verbose=TRUE, missing=0)
## S3 method for class 'linkdat':
print(x, ..., markers=seq_len(x$nMark))
## S3 method for class 'linkdat':
summary(object, ...)
## S3 method for class 'linkdat':
as.data.frame(x, ..., markers=seq_len(x$nMark), alleles=NULL,
missing=NULL, singleCol=FALSE)
## S3 method for class 'linkdat':
subset(x, subset=1:x$nInd, ..., markers=seq_len(x$nMark))
linkdat
object, or a matrix/data.frame. In the latter case, x
should contain containing columns corresponding to those indicated above. The order of the columns must be correct, as column names are ignored.linkdat.model
object (typically y$model for some linkdat object y
), or a single integer with the following meaning:
1 = autosomal dominant; 2 = autosomal recessive; 3 = X-linked dominant; 4 = X-linked recessive.
In each of talleles=c("A","B")
.linkdat
object, which is essentially a list with some or all of the following entries:data.frame
describing the pedigree in standard linkage format, i.e. one row for each individual and 5 columns: ID, FID, MID, SEX, AFF.matrix
containing the markerdatalinkdat.model
object, essentially a list containing the model parameters. See setModel
for detailsx$model$nallel==2
) - a list of length nInd containing "initial"
haplotype probabilities for each individual, given the penetrance values and allele frequencieslinkdat
object is a list whose entries describe a single medical pedigree. The individuals are relabeled as 1,2,..., but the original IDs are stored in x$oldid. Very little pedigree checking is done. It is recommended to plot the pedigree before doing any analysis.
The simulation status column uses standard SLINK codes: 2 if genotypes should be simulated for the individual, 0 if not. (This peculiar set of possible values stem from the original SLINK program, in which values 1 and 3 were also meaningful.)setModel
, read.linkdat
, write.linkdat
data(toyped)
toyped
x=linkdat(toyped, model=1)
x
summary(x)
y=subset(x, subset=1:3)
y
as.data.frame(y)
summary(y)
Run the code above in your browser using DataLab