truncate_alignment | R Documentation |
Simply truncating a Stockholm alignment file that includes secondary structure annotations may result in invalid base pairing, when only one half of a pair is removed. This function converts these half-pairs to "X", indicating unpairable bases.
truncate_alignment(aln, outfile = NULL, start = 1L, stop = 1000000L)
aln |
( |
outfile |
( |
start |
( |
stop |
( |
the truncated alignment as a
StockholmMultipleAlignment
object, or if outfile is given then NULL
(invisibly).
aln <- system.file(file.path("extdata", "fungi_32S.stk"), package = "LSUx")
truncate_alignment(aln, tempfile("trunc", fileext = ".stk"), 1, 500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.