Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

write.ped

Write ped file for analyses with PLINK


Description

write a ped and a map file suitable for analysis with PLINK

Usage

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. if pop=NULL, the first column should contain the population identifier, otherwise it contains genotypes at the first locus

ilab

individual 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

Chang et al. (2015) Second-generation PLINK: rising to the challenge of larger and richer datasets


hierfstat

Estimation and Tests of Hierarchical F-Statistics

v0.5-10
GPL (>= 2)
Authors
Jerome Goudet [aut, cre], Thibaut Jombart [aut], Zhian N. Kamvar [ctb], Eric Archer [ctb], Olivier Hardy [ctb]
Initial release
2021-11-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.