powered by
It appears DNAbin stores its internals differently for alignments of different sizes. Due to that, this function is more complicated as one would expect
get_alignment_sequence_length(alignment)
the length
a DNA alignment, of class DNAbin
Richèl J.C. Bilderbeek
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