Skip to contents

rev_comp creates reverse complemented version of the input sequence

Usage

rev_comp(seqs)

Arguments

seqs

input sequences, DNAStringSet or named vector of sequences

Value

reverse complemented input sequences as a DNAStringSet.

Examples

# reverse complement of codons
rev_comp(Biostrings::DNAStringSet(c('TAA', 'TAG')))
#> DNAStringSet object of length 2:
#>     width seq
#> [1]     3 TTA
#> [2]     3 CTA