replaceOuterGaps | R Documentation |
Replace gaps at the start and/or end of a sequence with another character (e.g. —A-A–A— to ...A-A–A...). This can be used to indicate the difference between indels within known sequences and unknown sequence surrounding a sequence.
replaceOuterGaps( seqs, leftEnd = TRUE, rightEnd = TRUE, gapChars = c("*", "-"), replaceChar = "." )
seqs |
a character vector of sequences |
leftEnd |
logical indicating whether gaps should be replaced at the start of the sequence |
rightEnd |
logical indicating whether gaps should be replaced at the end of the sequence |
gapChars |
a vector of single characters that count as gaps |
replaceChar |
character to replace start/end gaps with |
A character vector of sequences with start and/or end gaps replaced with replaceChar
replaceOuterGaps(c('--A-A--','AAA--AAA','--A-A','A-A--'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.