copy_true_alignment: Adapter function to create a twin alignment by simply copying...

View source: R/copy_true_alignment.R

copy_true_alignmentR Documentation

Adapter function to create a twin alignment by simply copying the true alignment

Description

Adapter function to create a twin alignment by simply copying the true alignment

Usage

copy_true_alignment(
  true_alignment,
  twin_phylogeny = "irrelevant",
  root_sequence = "irrelevant"
)

Arguments

true_alignment

a DNA alignment, of class DNAbin

twin_phylogeny

a phylogeny of class phylo

root_sequence

the DNA sequence at the root of the phylogeny. By default, this will consist out of an equal amount of each letter Use check_root_sequence to check if a root sequence is valid.

Value

the true alignment

Author(s)

Richèl J.C. Bilderbeek, Giovanni Laudanno

Examples

# Check cleanup by other functions
beastier::check_empty_beaustier_folders()

true_alignment <- get_test_alignment()
twin_alignment <- copy_true_alignment(true_alignment)

# twin_alignment equals true_alignment

richelbilderbeek/pirouette documentation built on Oct. 18, 2023, 3:09 p.m.