powered by
Given a DNA sequence, the function generates the reverse complement of the sequence and returns it.
reverse_complement(sequence)
A character string containing the reverse complement of the input DNA sequence
A character string containing the DNA sequence to be reversed and complemented
sequence <- "ATCGAGCTAGCTAGCTAGCTAGCT" reverse_complement(sequence) # [1] "AGCTAGCTAGCTAGCTAGCTCGAT"
Run the code above in your browser using DataLab