powered by
Use a snp.matrix object and genetic map to create a LINKAGE parameter file.
write.parfile(snp.data, map, file="out.par")
a snp.matrix object of genotypes
snp.matrix
genetic map in centiMorgans
file name for the output parameter file
None. The output is the parameter file.
write.pedfile
# 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