draw.recstat | R Documentation |
This function displays the results returned by recstat
with two plots. The
first one shows the factor scores of a CA computed on the codon composition of a DNA sequence.
The second one shows the locations of all Start and Stop codons in this sequence.
draw.recstat(rec, fac = 1, direct = TRUE, xlim = c(1, seqsize),
col = c("red", "blue", "purple"))
rec |
list of elements returned by |
fac |
axis of the CA to use for display (4 |
direct |
a logical for the choice of direct or reverse strand. |
xlim |
starting and ending positions in the sequence for the plot. |
col |
vector of colour codes for the three frames of the sequence. |
The first plot shows the factor scores of the sliding windows, this for the three possible frames of the strand selected by the user. The second shows the Start (filled grey triangles pointing up) and Stop (solid black triangles pointing down) codons positions. Note that the standard genetic code is used for that purpose. Visual detection of putative CDS is performed through the simultaneous use of these two graphics. If a CDS is located within the sequence, the factor scores for the windows located in the corresponding reading frame will be significantly separated from the two others. Moreover, the region where this separation is seen should be located between a Start and a Stop codon.
O. Clerc, G. Perrière
test.li.recstat
, test.co.recstat
ff <- system.file("sequences/ECOUNC.fsa", package = "seqinr")
seq <- read.fasta(ff)
rec <- recstat(seq[[1]], seqname = getName(seq))
draw.recstat(rec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.