comp {seqinr} | R Documentation

## complement a nucleic sequence

### Description

Complement a sequence, for instance if the sequence is `"a","c","g","t"` it returns `"t","g","c","a"`. All other values will return NA.

### Usage

    comp(seq)

### Arguments

`seq` | a vector of chars

### Value

It returns a vector of character which is the complement of a sequence.

### Author(s)

D. Charif

### References

`citation("seqinr")`

### Examples

       a=s2c("acgtgctcgtatatatatgccc")
       comp(a)
       b=s2c("acgtXctcgtatatatatgccc")
       comp(b)

[Package seqinr version 1.0-4 Index]