del.gaps {ape} | R Documentation |
These functions remove indel gaps ("-"
) in a sample of DNA
sequences.
del.gaps(x) del.colgapsonly(x)
x |
a matrix, a list, or a vector containing the DNA
sequences; only matrices for |
del.gaps
remove all gaps, so the returned sequences may not
have all the same lengths and are therefore returned in a list.
del.colgapsonly
removes the columns that contain only gaps
(useful when a small matrix is extracted from a large alignment).
The sequences can be either in "DNAbin"
or in another format,
but the returned object is always of class "DNAbin"
.
del.gaps
returns a vector (if there is only one input sequence)
or a list of class "DNAbin"
; del.colgapsonly
returns a
matrix.
Emmanuel Paradis
base.freq
, GC.content
,
seg.sites
, image.DNAbin