Last data update: 2014.03.03

R: Converting hybridsim object to introgress
sim2introgressR Documentation

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

Author(s)

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

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

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

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

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(AFLPsim)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/AFLPsim/sim2introgress.Rd_%03d_medium.png", width=480, height=480)
> ### Name: sim2introgress
> ### Title: Converting hybridsim object to introgress
> ### Aliases: sim2introgress
> ### Keywords: hybridization simulation
> 
> ### ** Examples
> 
> ## simulate hybrids
> hybrids<-hybridsim(Nmarker=100,Na=100,Nb=100,Nf1=30, type="selection", hybrid="all")
> 
> ## convert to introgress input file
> hybrids2<-sim2introgress(hybrids)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>