# Create the phylogeny to simulate the alignment on
n_taxa <- 5
phylogeny <- ape::rcoal(n_taxa)
# Use default settings to create the alignment
alignment_params <- create_alignment_params()
# Simulate the alignment
alignment <- sim_true_alignment(
true_phylogeny = phylogeny,
alignment_params = alignment_params,
)
check_alignment(alignment)
Run the code above in your browser using DataLab