Learn R Programming

pirouette (version 1.6.9)

get_alignment_sequence_length: Get the sequence length of an alignment

Description

It appears DNAbin stores its internals differently for alignments of different sizes. Due to that, this function is more complicated as one would expect

Usage

get_alignment_sequence_length(alignment)

Value

the length

Arguments

alignment

a DNA alignment, of class DNAbin

Author

Richèl J.C. Bilderbeek

Examples

Run this code
get_alignment_sequence_length(
  alignment = ape::as.DNAbin(
    x = list(species_1 = strsplit("aaaa", split = "")[[1]])
  )
)

Run the code above in your browser using DataLab