powered by
maskSeqGaps substitutes gap characters, c("-", "."), with "N" in a vector of DNA sequences.
maskSeqGaps
c("-", ".")
"N"
maskSeqGaps(seq, outer_only = FALSE)
a character vector of DNA sequence strings.
if TRUE replace only contiguous leading and trailing gaps; if FALSE replace all gap characters.
TRUE
FALSE
A modified seq vector with "N" in place of c("-", ".") characters.
seq
See maskSeqEnds for masking ragged edges.
maskSeqGaps(c("ATG-C", "CC..C")) maskSeqGaps("--ATG-C-") maskSeqGaps("--ATG-C-", outer_only=TRUE)
Run the code above in your browser using DataLab