powered by
Generates a random synonymous coding sequence, according to a certain codon usage bias
synsequence(sequence, numcode = 1, ucoweight = NULL)
A nucleic acids sequence
The genetic code number as in translate
translate
A list of weights containing the desired codon usage bias as generated by ucoweight
ucoweight
a sequence translating to the same protein sequence as the original one (cf. translate), but containing synonymous codons
citation("seqinr")
# NOT RUN { data(ec999) sequence=ec999[1][[1]] synsequence(sequence,1,ucoweight(sequence)) # }
Run the code above in your browser using DataLab