trimNs | R Documentation |
Removes N's from beginning and end of sequences.
trimNs(x)
x |
a |
sequences with beginning and trailing N's removed.
Eric Archer eric.archer@noaa.gov
test.seqs <- list(
A = c(rep("n", 5), "a", "c", "g", "t", rep("n", 3)),
B = c(rep("n", 3), "a", "c", "g", "t", rep("n", 5)),
C = c("a", "c", "g", "t", rep("n", 8))
)
test.seqs
trimmed <- trimNs(test.seqs)
as.character(trimmed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.