reverseComplement {Biostrings}R Documentation

Function to reverse a DNA or RNA sequence and complement each base

Description

Given an object of class "BioString", this function complements each base in the underlying string (replacing A with T or U, T or U with A, C with G and G with C) and reverses it. It also changes the substring indices so that they reflect the reversing.

Usage

reverseComplement(x)

Arguments

x an object of class "BioString"

Value

An object of class "BioString" containg the reversed and complemented underlying string and substring indices.

Author(s)

Saikat DebRoy

Examples

reverseComplement(DNAString("ATCG-AA"))

[Package Biostrings version 1.4.0 Index]