convert_phylogeny_to_alignment: Converts a phylogeny to a random DNA alignment

Description Usage Arguments Value Author(s) Examples

Description

Converts a phylogeny to a random DNA alignment

Usage

1
convert_phylogeny_to_alignment(phylogeny, sequence_length, mutation_rate = 1)

Arguments

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

Value

an alignment

Author(s)

Richel Bilderbeek

Examples

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))

richelbilderbeek/wiritttes documentation built on May 27, 2019, 8:14 a.m.