Learn R Programming

phylotools (version 0.1.2)

reverse: Get the reverse sequence.

Description

This function could be used to obtain the reverse sequence of the input sequence.

Usage

reverse(dna)

Arguments

dna
A character string of input DNA sequence

Value

A string contains the reverse sequence.

Details

This function could be used to obtain the reverse sequence of the input sequence.

References

Kress W., Erickson D., Jones F., Swenson N., Perez R., Sanjur O., Bermingham E., Plant DNA barcodes and community phylogeny of a tropical forest dynamics plot in Panama. Proceedings of the National Academy of Sciences of the United States of America. 2009 18621-18626

See Also

See Also fmatch

Examples

Run this code

## reverse example ########
dna = "---ATTGCCTTAS--TTTAAAAAACCGTTC-----"
reverse(dna)

Run the code above in your browser using DataLab