maskSeqGaps | R Documentation |
maskSeqGaps
substitutes gap characters, c("-", ".")
, with "N"
in a vector of DNA sequences.
maskSeqGaps(seq, mask_char = "N", outer_only = FALSE)
seq |
character vector of DNA sequence strings. |
mask_char |
character to use for masking. |
outer_only |
if |
A modified seq
vector with "N"
in place of c("-", ".")
characters.
See maskSeqEnds for masking ragged edges.
# Mask with Ns
maskSeqGaps(c("ATG-C", "CC..C"))
maskSeqGaps("--ATG-C-")
maskSeqGaps("--ATG-C-", outer_only=TRUE)
# Mask with dashes
maskSeqGaps(c("ATG-C", "CC..C"), mask_char="-")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.