reverseSeq {matchprobes} | R Documentation

## Reverse Sequence

### Description

Functions to obtain the reverse and reverse complement of a sequence

### Usage

    reverseSeq(seq)
    revcompDNA(seq)
    revcompRNA(seq)

### Arguments

`seq` | Character vector. For `revcompRNA` and `revcompDNA` the sequence should consist of appropriate letter codes: `[ACGUN]` and `ACGTN`, respectively.

### Details

The function reverses the order of the constituent character strings of its argument.

### Value

A character vector of the same length as `seq`.

### Author(s)

R. Gentleman, W. Huber, S. Falcon

### See Also

`basecontent`,`complementSeq`

### Examples

     w <-  c("hey there", "you silly fool")
     reverseSeq(w)

     w <- "able was I ere I saw Elba"
     reverseSeq(w)

    rna1 <- "UGCA"
    revcompRNA(rna1)

    dna1 <- "TGCA"
    revcompDNA(dna1)

[Package matchprobes version 1.14.1 Index]