R/clean_DNA_sequence.R
clean_DNA_sequence.Rd
This function takes a DNA sequence as input and removes any characters other than A, C, G, and T.
clean_DNA_sequence(sequence)
DNA sequence to be cleaned
Cleaned DNA sequence
clean_DNA_sequence("ATGTCGTAGCTAGCTN") #> [1] "ATGTCGTAGCTAGCT" # Output: "ATGTCGTAGCTAGCT"