getOmegas.CodonSequence: Get the omegas from a collection of sites

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the omegas from a collection of sites.

Usage

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

Arguments

this

A CodonSequence object.

process

A process object inheriting from GY94.

index

A vector of positions.

...

Not used.

Value

A numeric vector.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see CodonSequence.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
	# create a GY94 process
	p<-GY94()
	# create a CodonSequence object,
	# attach a process p
	s<-CodonSequence(length=20,processes=list(list(p)))
	# set omega values in range 1:5
	setOmegas(s,p,c(0.5,1,1.5),1:5)
	# get omega values from siutes 1,2,3,10, and 20
	getOmegas(s,p,c(1:3,10,20))
 

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