File: latag2n.Rd

package info (click to toggle)
r-cran-ape 5.8-1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,676 kB
  • sloc: ansic: 7,676; cpp: 116; sh: 17; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
\name{latag2n}
\alias{latag2n}
\title{Leading and Trailing Alignment Gaps to N}
\description{
  Substitutes leading and trailing alignment gaps in aligned sequences
  into \code{N} (i.e., A, C, G, or T). The gaps in the middle of the
  sequences are left unchanged.
}
\usage{
latag2n(x)
}
\arguments{
  \item{x}{an object of class \code{"DNAbin"} with the aligned sequences.}
}
\details{
  This function is called by others in \pkg{ape} and in \pkg{pegas}. It
  is documented here in case it needs to be called by other packages.
}
\value{an object of class \code{"DNAbin"}.}
\author{Emmanuel Paradis}
\seealso{\code{\link{DNAbin}}}
\examples{
x <- as.DNAbin(matrix(c("-", "A", "G", "-", "T", "C"), 2, 3))
y <- latag2n(x)
alview(x)
alview(y)
}
\keyword{manip}