getProcesses.Sequence: Get the Process objects attached to the Site objects...

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the Process objects attached to the Site objects aggregated by a Sequence object.

Usage

1
2
## S3 method for class 'Sequence'
getProcesses(this, index, ...)

Arguments

this

A Sequence object.

index

An integer vector specifying a set of positions. It is set to 1:seq$length if omitted.

...

Not used.

Value

A list of lists of Process objects.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Sequence.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
	# create a sequence object with some processes attached
	s<-Sequence(
               length=4,
               alphabets=list(NucleotideAlphabet()),
               processes=list(list(JC69(),K80()),list(GTR()))
               )
	# get the list of lists of attached processes from positions 1 and 3
	getProcesses(s,c(1,3))
	# get processes via virtual field
	s$processes
 

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