omegaVarM0.CodonSequence: The M0 (one-ratio) model of variable omega ratios among sites

Description Usage Arguments Value Author(s) References See Also Examples

Description

The M0 (one-ratio) 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 M0 (one-ratio) model of variable omega ratios among sites.

Distribution of omega values:

1
2
3
4
	CATEGORY	PROBABILITY

	omega		1
       

Usage

1
2
## S3 method for class 'CodonSequence'
omegaVarM0(this, process, omega, index, ...)

Arguments

this

A CodonSequence object.

process

A process object inheriting from GY94.

omega

The fixed omega value.

index

A vector of positions.

...

Not used.

Value

Invisible TRUE.

Author(s)

Botond Sipos, Gregory Jordan

References

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

See Also

For more information see CodonSequence.

Examples

 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=20, processes=list(list(p)))
	# sample states
	sampleStates(s)
	# sample omegas in range 1:5 from model M0
	omegaVarM0(s,p,omega=2,1:5)
	# get omega values
	getOmegas(s,p)
	# get a histogram of omega values in range 1:5
	omegaHist(s,p,breaks=50,1:5)
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.