View source: R/checks_validation.R
validate_seq | R Documentation |
Validate character strings before sequence construction.
validate_seq(x, alphabet, invalid_replacement, type = "DNA")
x |
a character vector. |
alphabet |
a character vector defining the sequence alphabet; |
invalid_replacement |
a character to replace non valid characters |
type |
type of sequence ("DNA", "RNA", "AA"). It is only used to provide more informative warning messages. |
Validation steps:
Check that x
is a character vector, fails if not.
Force alpha characters to uppercase
Delete blank characters (spaces and tabs)
Delete line breaks
Converts . (dots) to - (as both can represent a gap)
Replace invalid characters with N/X (with a warning).
A character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.