Learn R Programming

rJPSGCS (version 0.2-10)

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.

See Also

write.pedfile

Examples

Run this code
# NOT RUN {
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