sim2popgene: Converting hybridsim object to a PopGene input file

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

View source: R/sim2popgene.R

Description

The function sim2popgene converts a hybridsim object into a PopGene input file.

Usage

1
sim2popgene(x,filename)

Arguments

x

a hybridsim object

filename

a character string indicating the name of the output file

Value

a PopGene input file

Author(s)

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

References

Yeh, F.C., R.C. Yang, T.B.J. Boyle, Z.H. Ye & J.X. Mao (1997) Popgene, the User-Friendly Sharewarefor Population Genetic Analysis. Molecular Biology and Biotechnology Centre, University of Alberta, Canada (program available from: http://www.ualberta.ca/~fyeh/).

See Also

sim2arlequin sim2bayescan sim2introgress sim2newhybrids sim2structure

Examples

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

## convert to genepop input file
sim2popgene(F1hybrids,filename="F1hybrids_Popgene.txt")

Example output

########Neutral hybridization########

AFLPsim documentation built on May 29, 2017, 11:31 a.m.