complement: Find complement of sequences

View source: R/tools.R

complementR Documentation

Find complement of sequences

Description

Find the complement of one or more sequences stored as a character vector. This is a wrapper for comp for character vectors instead of lists of character vectors with one value per letter. IUPAC ambiguity code are handled and the upper/lower case is preserved.

Usage

complement(seqs)

Arguments

seqs

A character vector with one element per sequence.

See Also

Other sequence transformations: rev_comp(), reverse()

Examples


complement(c("aagtgGGTGaa", "AAGTGGT"))


metacoder documentation built on April 4, 2023, 9:08 a.m.