Description Usage Arguments Details Value Examples
Local codon pair scores plotted as a smooth line along the length of a nucleotide sequence.
1 2 |
seqOne |
Sequences can be input directly as a character string or as the file path to a fasta file. All sequences must be in the correct reading frame, stop codons or codons not defined in the translation table are not allowed and will generate an error. |
refOne |
CPB reference table. See |
seqTwo |
An alternate codon pair recoding of seqOne. seqTwo only accepts sequences with identical length to seqOne. |
refTwo |
A second CPB reference. The sequence(s) will be plotted relative to both references. |
start |
Nucleotide position in the sequence. |
end |
Nucleotide position in the sequence. |
windowSize |
Designates the number of nucleotides over which smoothing occurs. If NULL windowSize is 7.5% of the sequence length. |
The individual codon pair scores across a gene sequence are plotted as a smooth curve by locally weighted quadratic regression (loess
). Span is defined as the window size divided by total sequence length in nucleotides. Two different CPS encodings of a sequence can be compared with up to two reference CPB's.
Line plot in the graphics device.
1 2 3 4 5 6 7 | fastaLocation <- system.file('tbevns5.fasta', package = 'CPBias')
tbev <- importFasta(fastaLocation)[[1]]
humCPS <- CPScalc(tbev, Homo.sapiens, silent=TRUE, draw=FALSE)[[1]]
tbevhmax <- CPSdesign.dual(tbev, Aedes.aegypti, Homo.sapiens, humCPS, 'max',
draw=FALSE, silent=TRUE)
CPSplot(tbev, Homo.sapiens, tbevhmax[[9]], Homo.sapiens)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.