mutate {ARG} | R Documentation |
Mutates an ancestral recombination graph.
mutate(graph, var, ascert = "panel(3)")
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 |
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 |
Ian Wilson <I.J.Wilson@ncl.ac.uk>
a <- simARG(200,1000,.01) am <- mutate(a,50,"panel(4)") image(t(am$d))