Write ped file plink analysis

Description

write a ped and a map file suitable for analysis with http://pngu.mgh.harvard.edu/~purcell/plink/

Usage

1
2
write.ped(dat, ilab = NULL, pop = NULL,
        fname = "dat",na.str="0",f.id=NULL,m.id=NULL,loc.pos=NULL,sex=NULL)

Arguments

dat

a hierfstat data frame

ilab

individal labels

pop

population id

fname

filename for ped file

na.str

character string to use for missing values

f.id

father id. default to unknown

m.id

mother id. default to unknown

loc.pos

the loci position default to unknown

sex

the individual sex. default to unknown

Value

a map file containing the loci positions

a ped file containing genotypes etc...

References

Purcell etal (2007) PLINK: A Tool Set for Whole-Genome Association and Population-Based Linkage Analyses 81:559-575

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.