Learn R Programming

rJPSGCS (version 0.2-7)

write.parfile: write a LINKAGE parameter file

Description

Use a snp.matrix object and genetic map to create a LINKAGE parameter file.

Usage

write.parfile(snp.data, map, file="out.par")

Arguments

snp.data
a snp.matrix object of genotypes
map
genetic map in centiMorgans
file
file name for the output parameter file

Value

  • None. The output is the parameter file.

References

The JPSGCS webpage description of how the LINKAGE pedigree and parameter file formats are used may be found at http://balance.med.utah.edu/wiki/index.php/LINKAGE

See Also

write.pedfile

Examples

Run this code
data(exdat)
sdat<-as(exdat$markers,"snp.matrix") #coerce to snp.matrix
write.parfile(sdat,exdat$map,file="test.par")
unlink("test.par")

Run the code above in your browser using DataLab