blockAlignment: Make all sequences the same length

Description Usage Arguments Details Value Author(s) Examples

Description

Coerces all sequences in a DNAbin object to the same length.

Usage

1
blockAlignment(DNAbin, mode = "shortest", range = NULL, fill = "")

Arguments

DNAbin

An object of class DNAbin

mode

Character vector. Options of "shortest" or "longest"

range

Numeric vector of length 2. Index of the bases where the new alignment should begin and end

fill

Character to fill the extra bases in short sequences. Default of "" (blank). Recommend that only "-" (gap) or "?" be used

Details

When mode = "shortest", the alignment is truncated at the length of the shortest sequence. When mode = "longest", the alignment is extended to the end of the longest sequence, with shorter sequences filled in with "fill"s.

Value

A DNAbin object in matrix format.

Author(s)

Samuel Brown <s_d_j_brown@hotmail.com>

Examples

1
2
3
4
5
6
7
8
9

spider documentation built on May 2, 2019, 5:16 p.m.