| padSeqEnds | R Documentation | 
padSeqEnds takes a vector of DNA sequences, as character strings,
and appends the ends of each sequence with an appropriate number of "N" 
characters to create a sequence vector with uniform lengths.
padSeqEnds(seq, len = NULL, start = FALSE, pad_char = "N", mod3 = TRUE)
| seq | character vector of DNA sequence strings. | 
| len | length to pad to. Only applies if longer than the maximum length of
the data in  | 
| start | if  | 
| pad_char | character to use for padding. | 
| mod3 | if  | 
A modified seq vector with padded sequences.
See maskSeqEnds for creating uniform masking from existing masking.
# Default behavior uniformly pads ragged ends
seq <- c("CCCCTGGG", "ACCCTG", "CCCC")
padSeqEnds(seq)
# Pad to fixed length
padSeqEnds(seq, len=15)
# Add padding to the beginning of the sequences instead of the ends
padSeqEnds(seq, start=TRUE)
padSeqEnds(seq, len=15, start=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.