rc: Reverse complement DNA sequences.

Description Usage Arguments Value See Also Examples

View source: R/misc.R

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

1
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

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

dada2 documentation built on Nov. 8, 2020, 6:48 p.m.