Learn R Programming

seqinr (version 4.2-36)

synsequence: Random synonymous coding sequence generation

Description

Generates a random synonymous coding sequence, according to a certain codon usage bias

Usage

synsequence(sequence, numcode = 1, ucoweight = NULL)

Value

a sequence translating to the same protein sequence as the original one (cf. translate), but containing synonymous codons

Arguments

sequence

A nucleic acids sequence

numcode

The genetic code number as in translate

ucoweight

A list of weights containing the desired codon usage bias as generated by ucoweight

Author

L. Palmeira

References

citation("seqinr")

See Also

ucoweight

Examples

Run this code
  data(ec999)
  sequence=ec999[1][[1]]
  synsequence(sequence,1,ucoweight(sequence))

Run the code above in your browser using DataLab