Learn R Programming

AFLPsim (version 0.4-2)

sim2introgress: Converting hybridsim object to introgress

Description

The function sim2introgress converts a hybridsim object into an introgress input file. It is a wrapper to the function prepare.data of the package introgress

Usage

sim2introgress(x)

Arguments

x
a hybridsim object

Value

  • a list returned by the function prepare.data of the package introgress

encoding

latin1

References

Gompert, Z. & C.A. Buerkle. 2010. introgress: a software package for mapping components of isolation in hybrids. Molecular Ecology Resources 10: 378-384.

See Also

prepare.data sim2arlequin sim2bayescan sim2newhybrids sim2popgene sim2structure

Examples

Run this code
## simulate hybrids
hybrids<-hybridsim(Nmarker=100,Na=100,Nb=100,Nf1=30, type="selection", hybrid="all")

## convert to introgress input file
hybrids2<-sim2introgress(hybrids)

Run the code above in your browser using DataLab