rc: Reverse complement DNA sequences.

View source: R/misc.R

rcR Documentation

Reverse complement DNA sequences.

Description

This function reverse complements DNA sequence(s) provided. This function is nothing more than a concisely-named convenience wrapper for reverseComplement that handles the character vector DNA sequences generated in the the dada2 package.

Usage

rc(sq)

Arguments

sq

(Required). character. The DNA sequence(s) to reverse-complement. DNAString, or DNAStringSet formats are also accepted.

Value

character. The reverse-complemented DNA sequence(s).

See Also

reverseComplement

Examples

R1492 <- "RGYTACCTTGTTACGACTT"
rc(R1492)
sqs <- getSequences(system.file("extdata", "example_seqs.fa", package="dada2"))
rc(sqs)


benjjneb/dada2 documentation built on Nov. 16, 2024, 6:45 a.m.