Learn R Programming

seqRFLP (version 1.0.1)

revComp: Reverse complement sequence

Description

Given an segment of DNA sequence, this function will give the reverse complement sequence.

Usage

revComp(dna)

Arguments

dna
A character string containing the input DNA sequence.

Value

Returns to the reverse complement sequence.

Details

Imcompletely specified base in DNA sequences must use the standard abbreviations:

R
= G or A
Y
= C or T
M
= A or C
K
= G or T
S
= G or C
W
= A or T
B
= not A (C or G or T)
D
= not C (A or G or T)
H
= not G (A or C or T)
V
= not T (A or C or G)
N
= A or C or G or T

References

None.

Examples

Run this code
### revComp() example
revComp("TTGAACC")

Run the code above in your browser using DataLab