latag2n.phyDat | R Documentation |
Substitutes leading and trailing alignment gaps in aligned sequences into N (i.e., A, C, G, or T) or ?. The gaps in the middle of the sequences are left unchanged.
latag2n.phyDat(x, amb = ifelse(attr(x, "type") == "DNA", "N", "?"),
gap = "-", ...)
x |
an object of class |
amb |
character of the ambiguous state t replace the gaps. |
gap |
gap parameter to replace. |
... |
Further arguments passed to or from other methods. |
returns an object of class phyDat
.
latag2n
, ancestral.pml
,
gap_as_state
x <- phyDat(matrix(c("-", "A", "G", "-", "T", "C"), 2, 3))
y <- latag2n.phyDat(x)
image(x)
image(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.