Description Usage Arguments Details Value Author(s) See Also Examples
Function to generate a set of variants for a given DNA sequence.
1 | GenerateVars(seq, nhpl, max.muts, p.muts)
|
seq |
A character string with a DNA sequence from which to generate the variants. |
nhpl |
Number of haplotypes to generate. |
max.muts |
Maximum number of mutations in each sequence. |
p.muts |
Vector of length |
Given a DNA sequence, nhpl
variant haplotypes are generated at random,
with a maximum of max.muts
substitutions each. The probability of the
number of mutations in each haplotype generated is given by the vector
p.muts
. The positions of the mutations in each haplotype are independent
and random.
A character vector with nhpl
haplotype variants of the seq
sequence.
Mercedes Guerrero-Murillo and Josep Gregori
1 2 3 4 | set.seed(123)
m1 <- GetRandomSeq(50)
GenerateVars(m1,50,2,c(10,1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.