Generates a set of diverging haplotypes from the given DNA sequence. The haplotypes produced share a pattern of divergence with an increasing number of mutations.
Vector with number of diverging mutations to be generated.
Reference sequence from which to generate the variants.
max(vm) Positions in the given sequence are randomly generated.
A substitution is also randomly produced for each of these positions.
A haplotype is generated for each element in
vm, so that it contains
vm[i] substitutions of those previously generated.
Character string vector with the segregating haplotypes generated.
Mercedes Guerrero-Murillo and Josep Gregori
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.