File: synsequence.Rd

package info (click to toggle)
r-cran-seqinr 3.4-5-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,876 kB
  • sloc: ansic: 1,987; makefile: 14
file content (29 lines) | stat: -rw-r--r-- 869 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\name{synsequence}
\alias{synsequence}
\title{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)}
\arguments{
  \item{sequence}{ A nucleic acids sequence }
  \item{numcode}{ The genetic code number as in \code{translate} }
  \item{ucoweight}{ A list of weights containing the desired codon usage
    bias as generated by \code{ucoweight} }
}
\value{
  a sequence translating to the same protein sequence as the original
  one (cf. \code{translate}), but containing synonymous codons  
}
\references{
  \code{citation("seqinr")}
}
\author{L. Palmeira}
\seealso{ \code{\link{ucoweight}} }
\examples{
  data(ec999)
  sequence=ec999[1][[1]]
  synsequence(sequence,1,ucoweight(sequence))
}
\keyword{ utilities }