Description Usage Arguments Value Author(s) Examples
Converts a phylogeny to a random DNA alignment
1 | convert_phylogeny_to_alignment(phylogeny, sequence_length, mutation_rate = 1)
|
phylogeny |
a phylogeny |
sequence_length |
the number of nucleotides to alignment will have per taxon |
mutation_rate |
the rate per nucleotide to change, per million years |
an alignment
Richel Bilderbeek
1 2 3 4 5 6 | alignment <- convert_phylogeny_to_alignment(
phylogeny = ape::rcoal(5),
sequence_length = 10,
mutation_rate = 1
)
testit::assert(ribir::is_alignment(alignment))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.