Reverse and complement sequences
seq_complement(x)
seq_reverse(x)
a DNA or RNA vector.
Function seq_reverse
also accepts AA vectors.
A reverse or complement sequence (same class as the input).
Other biological operations:
seq_rev_translate()
,
seq_translate()
,
transcription
x <- dna("ACTTTGGCTAAG")
seq_reverse(x)
#> DNA vector of 1 sequences
#> > GAATCGGTTTCA
seq_complement(x)
#> DNA vector of 1 sequences
#> > TGAAACCGATTC