mutate {ARG}R Documentation

Mutate an ARG

Description

Mutates an ancestral recombination graph.

Usage

mutate(graph, var, ascert = "panel(3)")

Arguments

graph The ARG to be mutated
var The number of variable sites (must be less than a tenth of the number of sites in the ARG
ascert The type of ascertainment. A string that descibes the ascertainedment model. Can be panel, doublepanel, random or bylength

Value

A list that has class mutatedARG. This inherits other information from the ARG generated in simARG.

d A matrix of haplotypes
positions The positions of the variable sites

Author(s)

Ian Wilson <I.J.Wilson@ncl.ac.uk>

Examples

a <- simARG(200,1000,.01)
am <- mutate(a,50,"panel(4)")
image(t(am$d))

[Package ARG version 0.1 Index]