Description Usage Arguments Details Value Author(s) Examples
View source: R/narrowingWindow.R
Coerces all sequences in a DNAbin object to the same length.
1 2 3 | narrowingWindow(DNAbin, interval = 10)
narrowingWindow2(DNAbin, interval = 1, direction = "left")
giveMeThePicture(DNAbin)
|
DNAbin |
An object of class |
interval |
Numeric. Size of steps by which the alignment should be trimmed. |
direction |
Character vector. Options of "left", "right" or "both" |
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 "N"s.
narrowingWindow
and narrowingWindow2
return lists of DNAbin objects.
giveMeThePicture
returns a picture of the GC content as the alignment is trimmed.
Samuel Brown <s_d_j_brown@hotmail.com>
1 2 3 4 | data(dolomedes)
narrowingWindow(dolomedes)
narrowingWindow2(dolomedes)
giveMeThePicture(dolomedes)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.