invers {seqinr}R Documentation

invers

Description

Reverse a sequence. For example, "a","c","g","t" is transformed into "t","g","c","a".

Usage

invers(seq)

Arguments

seq A vector of chars

Value

return a vector of character.

Author(s)

D. Charif

References

  To have an overview of the seqinR's functionnality, please consult this vignette: Charif, D., Lobry, J.R. (2005) SeqinR: a contributed package to the R project for statistical computing devoted to biological sequences retrieval and analysis. Springer Verlag, Biological and Medical Physics/Biomedical Series, in preparation.

See Also

rev

Examples

s=s2c("acgtgctcgtataatatgccc")
invers(s)

[Package seqinr version 1.0-3 Index]