Learn R Programming

beastier (version 2.5)

create_random_alignment: Create a random alignment

Description

Create a random alignment

Usage

create_random_alignment(n_taxa, sequence_length, rate = 1, taxa_name_ext = "")

Value

an alignment of class DNAbin

Arguments

n_taxa

The number of taxa

sequence_length

The number of base pairs the alignment will have

rate

mutation rate

taxa_name_ext

the extension of the taxa names

Author

Richèl J.C. Bilderbeek

Examples

Run this code
check_empty_beaustier_folders()

alignment <- create_random_alignment(
  n_taxa = 5,
  sequence_length = 10
)
image(alignment)

remove_beaustier_folders()
check_empty_beaustier_folders()

Run the code above in your browser using DataLab