Substitutes leading and trailing alignment gaps in aligned sequences
into N
(i.e., A, C, G, or T). The gaps in the middle of the
sequences are left unchanged.
latag2n(x)
an object of class "DNAbin"
with the aligned sequences.
an object of class "DNAbin"
.
This function is called by others in ape and in pegas. It is documented here in case it needs to be called by other packages.
# NOT RUN {
x <- as.DNAbin(matrix(c("-", "A", "G", "-", "T", "C"), 2, 3))
y <- latag2n(x)
alview(x)
alview(y)
# }
Run the code above in your browser using DataLab