Learn R Programming

AlphaSimR (version 0.10.0)

writePlink: Writes a Pop-class as PLINK files

Description

Writes a Pop-class as PLINK PED and MAP files

Usage

writePlink(pop, baseName, trait = 1L, snpChip = 1L, simParam = NULL,
  chromLength = 10L^8)

Arguments

pop

an object of Pop-class

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 SimParam

chromLength

an integer. The size of chromosomes in base pairs; assuming all chromosomes are of the same size.