writePlink {AlphaSimR} | R Documentation |
Writes a Pop-class as PLINK PED and MAP files
writePlink(pop, baseName, trait = 1L, snpChip = 1L, simParam = NULL, chromLength = 10L^8)
pop |
an object of |
baseName |
a character. Basename of PED and MAP files. |
trait |
an integer. Which phenotype trait should be used. |
snpChip |
an integer. Which SNP array should be used. |
simParam |
an object of |
chromLength |
an integer. The size of chromosomes in base pairs; assuming all chromosomes are of the same size. |