simu.write.ancstrl: Simulation tools

Description Usage Arguments

Description

simu.write.ancstrl creates haplotype matrices and genotype matrices from Beagle outputs.

Usage

1
2
simu.write.ancstrl(obj.vcfR, pop, ancestral.1, ancestral.2, recombinationRate,
  keep, output.name = "output")

Arguments

obj.vcfR

an object of class vcfR obtained with a Beagle output.

pop

a string vector specifying the population labels for each individual present in the VCF file.

ancestral.1

a character string or an integer specifying the first ancestral population.

ancestral.2

a character string or an integer specifying the second ancestral population.

recombinationRate

a numerical value expressed in centiMorgans per Megabase specifying the mean recombination rate of the species.

keep

a list specifying the markers to keep. If missing, all markers will be kept.

output.name

a character string specifying the name of the output map file.


keurcien/simulate documentation built on May 20, 2019, 3:32 p.m.