comp: Sequence complement

View source: R/ambiguity.R

compR Documentation

Sequence complement

Description

Complements the input sequence (re-write of seqinr comp function for gap support)

Usage

comp(seq, forceToLower = TRUE, ambiguous = FALSE)

Arguments

seq

Input char vector.

forceToLower

if TRUE the input is transformed to lower case.

ambiguous

if TRUE ambiguous IUPAC nucleotides are complemented.

Value

The complement of seq.


matdoering/openPrimeR documentation built on July 4, 2025, 3:59 a.m.