View source: R/clean_sequence.R
clean_sequence | R Documentation |
This function takes a DNA or RNA sequence as input and removes any characters that are not A, C, G, T (for DNA) or A, C, G, U (for RNA).
clean_sequence(sequence, type = "DNA")
sequence |
A character string containing the DNA or RNA sequence to be cleaned. |
type |
A character string indicating the type of sequence. The default is "DNA". If set to "RNA", the function will remove any characters that are not A, C, G, U. |
A character string containing the cleaned DNA or RNA sequence.
clean_sequence("atgcNnRYMK") # Returns "ATGC"
clean_sequence("auggcuuNnRYMK", type = "RNA") # Returns "AUGGCUU"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.