Description Usage Arguments Details Value Author(s) Examples
Coerces all sequences in a DNAbin object to the same length.
1 | blockAlignment(DNAbin, mode = "shortest", range = NULL, fill = "")
|
DNAbin |
An object of class |
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 |
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.
A DNAbin object in matrix format.
Samuel Brown <s_d_j_brown@hotmail.com>
1 2 3 4 5 6 7 8 9 | data(salticidae)
salticidae
blockAlignment(salticidae)
blockAlignment(salticidae, mode = "longest")
blockAlignment(salticidae, mode = NULL, range = c(200, 600))
image(blockAlignment(salticidae))
image(blockAlignment(salticidae, mode = "longest"))
image(blockAlignment(salticidae, mode = NULL, range = c(200, 600)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.