Learn R Programming

microseq (version 1.3)

reverseComplement: Reverse-complementation of DNA

Description

The standard reverse-complement of nucleotide sequences.

Usage

reverseComplement(nuc.sequences, reverse = TRUE)

Arguments

nuc.sequences

Character vector containing the nucleotide sequences.

reverse

Logical indicating if complement should be reversed.

Value

A character vector of reverse-complemented sequences.

Details

This function uses the Biostrings::reverseComplement function.

Examples

Run this code
# NOT RUN {
ex.file <- file.path(file.path(path.package("microseq"),"extdata"),"small.fasta")
fdta <- readFasta(ex.file)
reverseComplement(fdta$Sequence)


# }

Run the code above in your browser using DataLab