getSequence {seqinr} | R Documentation

## Generic Function To Get a sequence

### Description

Method for the classes of sequences: `SeqFastadna`, `SeqFastaAA`, `SeqAcnucWeb` and `SeqFrag`.

### Usage

    getSequence(object, as.string = FALSE)

### Arguments

`object` | an object of class `SeqFastadna`, `SeqFastaAA`, `SeqAcnucWeb` or `SeqFrag`.
`as.string` | if TRUE sequences are returned as a string instead of a vector of chars.

### Value

A vector of chars containing the sequence (default) or a string when `as.string` is set to TRUE.

### Author(s)

D. Charif

### References

`citation("seqinr")`

### See Also

`getFrag`, `c2s`

### Examples

     methods(getSequence)

[Package seqinr version 1.0-4 Index]