Description Usage Arguments Value Author(s) References See Also Examples
The M4 (freqs) model of variable omega ratios among sites.
This method sets the omega
site-process specific parameter
in the specified range to values sampled from the M4 (freqs) model of
variable omega ratios among sites.
Distribution of omega values:
1 2 3 4 5 6 7 8 | CATEGORY PROBABILITY
omega_0 = 0 p0
omega_1 = 1/3 p1
omega_2 = 2/3 p2
omega_3 = 1 p3
omega_4 = 3 p4
|
1 2 | ## S3 method for class 'CodonSequence'
omegaVarM4(this, process, probs, index, ...)
|
this |
A CodonSequence object. |
process |
A process object inheriting from GY94. |
probs |
A vector of probabilities (p0 ... p4). |
index |
A vector of positions. |
... |
Not used. |
Invisible TRUE.
Botond Sipos, Gregory Jordan
Yang, Z., Nielsen, R., Goldman, N., Pedersen Krabbe, A-M. (2000) Codon-Substitution Models for Heterogeneous Selection Pressure at Amino Acid Sites - Genetics 155:431-449 http://bit.ly/bvjucn
Goldman, N., Yang, Z. (1994) A codon-based model of nucleotide substitution for protein-coding DNA sequences - Mol Biol Evol 11(5):725-36 http://bit.ly/aSVEoa
For more information see CodonSequence
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # create a GY94 object
p<-GY94(kappa=2)
# create a CodonSequence object, attach process p
s<-CodonSequence(length=25, processes=list(list(p)))
# sample states
sampleStates(s)
# sample omegas in range 1:20 from model M4
omegaVarM4(s,p,probs=c(2/5,1/5,1/5,1/10,1/10),1:20)
# get omega values
getOmegas(s,p)
# get a histogram of omega values in range 1:20
omegaHist(s,p,breaks=50,1:20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.