Description Usage Format Details Examples
A pedigree table for the same simulees as in dataset pheno
.
1 |
A data frame with 4050 observations on the following 6 integer-valued variables:
FAMID
"Family ID." Each family in the dataset is uniquely identified by a value of FAMID
, which are all multiples of 10.
ID
Individual ID. Each subject in the dataset is uniquely identified by a value of ID
.
PID
"Paternal ID." Coded 0 for founders (parents, adoptees, and "independent observations.")
MID
"Maternal ID." Coded 0 for founders (parents, adoptees, and "independent observations.")
SEX
Coded 1 for male and 2 for female.
Merely a pedigree table in a commonly used format. Note that its column names are the default names that gls.batch()
or gls.batch.get()
assign to the pedigree file. However, the only column that those two functions strictly require is ID
; see examples below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | data(pedigree)
data(pheno)
data(geno)
data(map)
foo <- gls.batch.get(
phenfile=pheno,genfile=data.frame(t(geno)),pedifile=pedigree,
covmtxfile.in=NULL,theta=NULL,snp.names=map[,2],
input.mode=1,
pediheader=FALSE,pedicolname=c("FAMID","ID","PID","MID","SEX"),
sep.phe=" ",sep.gen=" ",sep.ped=" ",
phen="Zscore",covars="IsFemale",med=c("UN","VC"),
outfile,col.names=TRUE,return.value=FALSE,
covmtxfile.out=NULL,
covmtxparams.out=NULL,
sizeLab=NULL,Mz=NULL,Bo=NULL,Ad=NULL,Mix=NULL,indobs=NULL)
str(foo)
##Also works, since phenfile provides 'FTYPE' and 'INDIV',
##and input.mode=1:
pedigree2 <- pedigree
pedigree2[,-2] <- NA ##<--Change all but column 'ID' to NA.
foo2 <- gls.batch.get(
phenfile=pheno,genfile=data.frame(t(geno)),
pedifile=pedigree2, ##<--Note change.
covmtxfile.in=NULL,theta=NULL,snp.names=map[,2],
input.mode=1, ##<-- =2 or =3 would need more pedifile columns
pediheader=FALSE,pedicolname=c("FAMID","ID","PID","MID","SEX"),
sep.phe=" ",sep.gen=" ",sep.ped=" ",
phen="Zscore",covars="IsFemale",med=c("UN","VC"),
outfile,col.names=TRUE,return.value=FALSE,
covmtxfile.out=NULL,
covmtxparams.out=NULL,
sizeLab=NULL,Mz=NULL,Bo=NULL,Ad=NULL,Mix=NULL,indobs=NULL)
str(foo2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.