Description Usage Arguments Details Value Author(s) Examples
View source: R/simuEvolution.R
This function simulates the evolution of a set of sequences. It is necessary to define evolution topology, substitution rate, indel rate and insertion/deletion rate in a matrix (see details).
1 | simuEvolution(input, seqL, iLength, nReplicates)
|
input |
Matrix defining evolution topology and mutation rates. |
seqL |
Length of the simulated sequences. |
iLength |
Length of indel mutations. |
nReplicates |
Number of independent sequence sets to be simulated. |
Evolution details must be provided in a file consisting in five columns separated by spaces. The first two columns define topology by indicating the ancestor and the derived sequence, respectively. The remaining columns provide rates for substitutions and indels as well as the ratio between insertions and deletions. The simulation is performed over the complete alignment. To test the effect of alignment method over the simulated sequences it will be necessary to degap the yielded sequences.
For each replicate, two files are generated: one containing the alignment with all the generated sequences and the other containing only tips sequences (i.e., sequences that are not the ancestor of any other sequence).
A. J. Muñoz-Pajares
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.