sim2bayescan: Converting hybridsim object to a Bayescan input file

Description Usage Arguments Value Author(s) References See Also Examples

Description

The function sim2bayescan converts a hybridsim object into a Bayescan (Foll & Gaggiotti 2008) input file.

Usage

1
sim2bayescan(x,filename)

Arguments

x

a hybridsim object. Only with F1 hybrids

filename

a character string indicating the name of the output file

Value

Bayescan input file

Author(s)

F. Balao fbalao@us.es, J.L. García-Castaño

References

Foll, M. & O. Gaggiotti. 2008. A genome-scan method to identify selected loci appropriate for both dominant and codominant markers: a Bayesian perspective. Genetics 180: 977-993.

See Also

sim2arlequin sim2introgress sim2newhybrids sim2popgene sim2structure

Examples

1
2
3
4
5
## simulate F1 hybrids
F1hybrids<-hybridsim(Nmarker=100,Na=100,Nb=100,Nf1=30, type="selection", S=5, Nsel=25, hybrid="F1")

## convert to Bayescan input file
sim2bayescan(F1hybrids,filename="F1hybrids_Bayescan.txt")

fbalao/AFLPsim documentation built on May 16, 2019, 11:09 a.m.